Heroku Django foreman start error exited with code 1 mac

一笑奈何 提交于 2019-12-13 04:25:00

问题


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

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

It works fine after git push to heroku.

However, using foreman start doesn't return an ip for test running. I installed the heroku toolbelt from the download package and pip django-toolbelt from terminal. Anyone know what's wrong?

Thanks in advance.

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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/24392907/heroku-django-foreman-start-error-exited-with-code-1-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!