user3149525
user3149525

Reputation: 293

Using gunicorn to run app error

I have gunicorn successfully installed

Every time I run this command:

$ gunicorn hello.wsgi:application --bind example.com:8001

I get this error:

[INFO] Starting gunicorn 18.0
[ERROR] Invalid address: ('example.com', 8001)

I am following this tutorial:

http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/

Upvotes: 4

Views: 2809

Answers (2)

David Pineda Osorio
David Pineda Osorio

Reputation: 23

I had the same problem. Let's look:

First we have the 'public_html' folder for the web sites, then we have the virtualenv folder apps 'mysite'

Then, in 'mysite' you have 'myapp' Django, inside that there are another 'myapp' folder with the wsgy.py file.

So inside your django app first folder you run:

gunicorn myapp.wsgi:application --bind site.com:8001

Upvotes: 0

falsetru
falsetru

Reputation: 368894

example.com is just an example domain. Use 0.0.0.0:8001 as bind address instead.

gunicorn hello.wsgi:application --bind 0.0.0.0:8001

Upvotes: 4

Related Questions