python - UWSGI connection refused from urllib2, but only if UWSGI is running as a service -


i'm deploying flask application via uwsgi , nginx on pretty vanially ubuntu 13.04 install. 1 of things need post data server raspberry pi, doing using urllib2.

if run uwsgi manually running uwsgi --ini file, works swimmingly.

if run uwsgi doing sudo service uwsgi start, can access user facing stuff correctly web browser, raspberry pi python app gets http error 500: internal server error.

my uwsgi init script: description "uwsgi" start on runlevel [2345] stop on runlevel [06]

respawn

exec uwsgi --ini /path/to/file.ini

any appreciated.


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -