Question

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/

Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top