【问题标题】:django heroku foreman start error code 1django heroku工头启动错误代码1
【发布时间】:2013-05-29 19:02:53
【问题描述】:

按照 django heroku 页面的入门逐字逐句。 https://devcenter.heroku.com/articles/django

在工头启动步骤中,工头未正确运行。 ProcFile 内容,

web: gunicorn hellodjango.wsgi

需求内容:

Django==1.5.1
dj-database-url==0.2.1
gunicorn==0.17.4
psycopg2==2.4.5

完全按照教程输入虚拟环境, gunicorn、procfile 和 requirements 位于下面的 scripts 目录中,wsgi.py 文件位于 hellodjango 目录中,路径为C:\hellodjango2\newvirtualenv\Scripts\hellodjango

python 和 python/scripts 位于路径文件中。

这是输出

(newvirtualenv) C:\hellodjango2\newvirtualenv\Scripts>foreman start
09:48:58 web.1  | started with pid 3580
09:48:58 web.1  | exited with code 1
09:48:58 system | sending SIGKILL to all processes

【问题讨论】:

标签: python django heroku foreman


【解决方案1】:

根据今天的 heroku 文档,建议您使用:

$ heroku local web

而不是foreman。可以试试吗?

您可以做的另一件事来检查一切是否正常运行 django:python manage.py runserver,如果它不工作,您可以添加该调用生成的回溯吗?

【讨论】:

    猜你喜欢
    • 2014-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-19
    • 2012-10-11
    • 2015-06-16
    • 1970-01-01
    • 2019-08-27
    相关资源
    最近更新 更多