> I sent the last email from the wrong address so here it is again. Sorry if
> it sent twice. Thank you for all the replies. I will try and supply as
> much
> information as possible.
>
> *This is my nginx config:*
>
> server {
> listen 80;
> root /home/deploy/employable;
> server_name www.employable.org;
> location / { try_files $uri @app; }
> location @app {
> include uwsgi_params;
> uwsgi_pass unix:/tmp/uwsgi.sock;
> }
> }
>
> *This is how I am trying to run it:*
> /usr/local/bin/uwsgi -L -w wsgi:app --ini
> /etc/configuration/uwsgi/uwsgi.ini
>
> *This is my wsgi.py (flask app)*
>
> #!/usr/bin/env python
>
> from app import create_app
>
> create_app().run(debug=True)
>
>
Calling run() in the callable means not leaving control to uWSGI (and
maybe it is what is generating that strange error)
i would reqrite the wsgi script as:
from app import create_app
application = create_app()
and option -w to
-w wsgi
(and remove 'module' and 'callable' directive from the ini file)
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi