简体   繁体   English

使用代码1 mac退出了Heroku Django工头启动错误

[英]Heroku Django foreman start error exited with code 1 mac

foreman start 工头开始

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

Procfile 程序文件

web: gunicorn herokudjango.wsgi

requirements.txt 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

Hi, I simply follow https://devcenter.heroku.com/articles/getting-started-with-django 嗨,我只是遵循https://devcenter.heroku.com/articles/getting-started-with-django

It works fine after git push to heroku. 在git push到heroku之后,它可以正常工作。

However, using foreman start doesn't return an ip for test running. 但是,使用管工启动不会返回用于测试运行的IP。 I installed the heroku toolbelt from the download package and pip django-toolbelt from terminal. 我从下载包中安装了heroku工具带,并从终端安装了pip django-toolbelt。 Anyone know what's wrong? 有人知道怎么了吗?

Thanks in advance. 提前致谢。

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

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

Take a look at the docs, by default foreman loads on port 5000. I believe you can change it to whatever port you want in the procfile. 看一下文档,默认情况下工头在端口5000上加载。我相信您可以将其更改为procfile中所需的任何端口。

I have also faced the same issue. 我也面临同样的问题。 after installing gunicorn==0.16.1 using pip i resolved my problem... Hope this will resolve your problem too.... 使用pip安装gunicorn == 0.16.1之后,我解决了我的问题...希望这也能解决您的问题。...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM