【发布时间】:2014-12-23 19:35:00
【问题描述】:
我正在尝试实现 Django Heroku 教程https://devcenter.heroku.com/articles/getting-started-with-django
python manage.py runserver 在 virtualenv 内外都可以正常工作
foreman start 在 virtualenv 之外工作正常
foreman start 在 virtualenv 中,命令要么停留在第一行,要么以代码 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
更新:
过程文件
web: gunicorn cell_modelling_site.wsgi
【问题讨论】:
-
foreman run run python manage.py runserver在你的 venv 中工作吗?如果是,您可以使用它。 -
它有效,但它真的等同于
foreman start吗?当我heroku open和heroku logs除了我有第 500 个 http 请求错误之外没有显示任何内容时,我有内部服务器错误。我需要一些工具来为我提供有关原因的更多信息。 -
您能提供您的
Procfile中的内容吗? -
当然。
web: gunicorn cell_modelling_site.wsgi
标签: python django heroku upload foreman