【问题标题】:Heroku Django foreman start error exited with code 1 macHeroku Django工头启动错误退出代码1 mac
【发布时间】:2014-08-15 02:03:54
【问题描述】:

工头开始

01:25:49 web.1  | started with pid 3584
01:25:55 web.1  | exited with code 1
01:25:55 system | sending SIGTERM to all processes
SIGTERM received

过程文件

web: gunicorn herokudjango.wsgi

requirements.txt

Django==1.6.5
dj-database-url==0.3.0
dj-static==0.0.5
django-toolbelt==0.0.1
gunicorn==19.0.0
psycopg2==2.5.3
pystache==0.5.4
static==1.0.2
wsgiref==0.1.2

你好,我只是关注https://devcenter.heroku.com/articles/getting-started-with-django

git push 到heroku 后就可以正常使用了。

但是,使用 foreman start 不会返回用于测试运行的 ip。我从下载包安装了heroku toolbelt,从终端安装了pip django-toolbelt。有谁知道怎么回事?

提前致谢。

答案: http://thefreshlybaked.wordpress.com/2014/07/09/setting-up-django-on-heroku-with-postgresql/

【问题讨论】:

    标签: python django heroku heroku-toolbelt


    【解决方案1】:

    我也遇到了同样的问题。安装 gunicorn==0.16.1 后 使用 pip 我解决了我的问题...希望这也能解决您的问题....

    【讨论】:

      【解决方案2】:

      https://devcenter.heroku.com/articles/procfile#developing-locally-with-foreman

      查看文档,默认情况下,工头加载在端口 5000 上。我相信您可以在 procfile 中将其更改为您想要的任何端口。

      【讨论】:

        猜你喜欢
        • 2013-05-29
        • 2012-10-11
        • 1970-01-01
        • 2019-08-27
        • 1970-01-01
        • 2016-05-12
        • 2021-03-11
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多