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)

*This is my uwsgi.ini file:*
*
*

[uwsgi]
chdir = /home/deploy/employable
uid = www-data
gid = www-data
chmod-socket = 666
socket = /tmp/uwsgi.sock
module = run
callable = app
virtualenv = /home/deploy/employable




On Mon, Sep 2, 2013 at 1:29 PM, James Zildjian <[email protected]> wrote:

> 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)
>
>
>
>
> On Mon, Sep 2, 2013 at 1:25 PM, Aarni Koskela <[email protected]
> > wrote:
>
>>  I would guess your uWSGI command line is misconfigured, since that
>> message (“unable to load configuration from <...>”) apparently only occurs
>> when uWSGI is unable to read its configuration file.****
>>
>> ** **
>>
>> Are you sure your command line is of the format “uwsgi --ini uwsgi.ini”
>> and not accidentally “uwsgi --ini uwsgi” for instance?****
>>
>> ** **
>>
>> *From:* [email protected] [mailto:[email protected]]
>> *On Behalf Of *James Willson
>> *Sent:* Monday, September 02, 2013 3:22 PM
>> *To:* [email protected]
>> *Subject:* [uWSGI] Unable to load configuration from uwsgi****
>>
>> ** **
>>
>> Hi,****
>>
>> ** **
>>
>> Since yesterday I have been wrestling with this problem: unable to load
>> configuration from uwsgi****
>>
>> ** **
>>
>> When I google it, nothing comes up. I am trying to run UWSGI under nginx
>> with a very simple uwsgi.ini file. The file is being pointed to correctly.
>> ****
>>
>> ** **
>>
>> Can anyone please explain what this error is, and how I ca go about
>> diagnosing it and fixing it. If there is any more information I can post to
>> help then please just ask.****
>>
>> ** **
>>
>> Regards,****
>>
>> ** **
>>
>> James****
>>
>> _______________________________________________
>> uWSGI mailing list
>> [email protected]
>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>>
>>
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to