Hi,

I was trying to set up my app to use nginx + gunicorn (flask) instead of 
the usual dev setup, so that it's more close to a production setup.

Since I use vagrant to set this up (which forwards port 80 to port 8080 
locally), I had to change the baseurl of Restangular.

However, getting very weird behavior. When it points at 
http://localhost/api it'll load the app, and the request will get a 
connection refused (as expected)

When I change it to http://localhost:8080/api , the file gets received 
incorrectly by chrome, it either adds ILLEGAL TOKENS, or it's missing a 
bunch of characters at the end of the file.

Switching it back to http://localhost/api loads the files correctly.

Anyone could help with this (bizzarre?) scenario?

nginx is using proxy_pass etc to go to the gunicorn app server, and is 
serving the /static/ files itself.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to