我正在努力通过Heroku 的 Django 教程 https://devcenter.heroku.com/articles/django我一路走到了'使用不同的 WSIG 服务器 https://devcenter.heroku.com/articles/django#using-a-different-wsgi-server'.
当我尝试使用 Gunicorn 时,出现以下错误:
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>
使用 Heroku 上的开发服务器工作正常。我使用的是 Windows 7。有什么想法吗?我怀疑这是操作系统问题?
thanks,
AP
不幸的是,Gunicorn 无法在 Windows 上运行。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)