在尝试运行Django项目时,Heroku工头开始命令卡在virtualenv中

时间:2014-10-28 11:50:08

标签: python django heroku upload foreman

我正在尝试实施Django Heroku教程https://devcenter.heroku.com/articles/getting-started-with-django

python manage.py runserver在virtualenv内部和内部工作正常

foreman start在virtualenv之外正常工作

在virtualenv中的

foreman start命令要么停留在第一行,要么以代码1结束

13:29:08 web.1  | started with pid 4231
13:29:13 web.1  | exited with code 1
13:29:13 system | sending SIGTERM to all processes 

UPD:

Procfile

web: gunicorn cell_modelling_site.wsgi

1 个答案:

答案 0 :(得分:0)

我遇到了更为苗条的问题。我通过使用pip安装gunicorn == 0.16.1解决了这个问题。希望这也能解决你的问题......

用gunicorn替换现有的gunicorn == 0.16.1