【问题标题】:Heroku Django Gunicorn 'Foreman Start' errorHeroku Django Gunicorn“工头开始”错误
【发布时间】:2012-09-19 14:57:01
【问题描述】:

我正在处理 Heroku's Django tutorial 并一直到 'Using a different WSIG 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 上。有什么想法吗?我怀疑这是操作系统问题?

谢谢,

AP

【问题讨论】:

  • gunicorn-script.py 的第 9 行在做什么?
  • load_entry_point('gunicorn==0.14.6','console_scripts','gunicorn')()
  • 嗯... gunicorn 的文件夹添加到 PATH 了吗?

标签: django heroku gunicorn


【解决方案1】:

很遗憾,Gunicorn 无法在 Windows 上运行。

【讨论】:

    猜你喜欢
    • 2014-02-18
    • 2013-05-29
    • 2015-06-16
    • 1970-01-01
    • 2017-03-28
    • 2014-08-05
    • 2020-05-12
    • 2014-08-15
    相关资源
    最近更新 更多