Heroku Django Gunicorn 'Foreman Start' error

谁说我不能喝 提交于 2020-01-13 06:18:08

问题


I'm working through the Heroku's Django tutorial and I got all the way down to 'Using a different WSIG server'.

When I try to use gunicorn I get the following error:

requirements.txt
Django==1.4.1
distribute==0.6.28
dj-database-url==0.2.1
psycopg2==2.4.5
gunicorn==0.14.6

Procfile
web: gunicorn djtut.wsgi -b 0.0.0.0:$PORT

(venv) C:\Users\xxxx\Documents\Python\djtut>foreman check
valid procfile detected (web)

(venv) C:\Users\xxxx\Documents\Python\djtut>foreman start
10:53:05 web.1  | started with pid 5652
10:53:06 web.1  | exited with code 1
10:53:06 web.1  | Traceback (most recent call last):
10:53:06 system | sending SIGKILL to all processes
10:53:06        |   File "C:\Users\xxxx\Documents\Python\djtut\venv\Scripts\
gunicorn-script.py", line 9, in <module>
(venv) C:\Users\xxxxx\Documents\Python\djtut>    

Works fine using the dev server on Heroku. I'm on Windows 7. Any ideas? I suspect it is an OS issue?

thanks,

AP


回答1:


Unfortunately, Gunicorn doesn't work on Windows.



来源:https://stackoverflow.com/questions/12627885/heroku-django-gunicorn-foreman-start-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!