[英]Heroku Django foreman start error exited with code 1 mac
工頭開始
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之后,它可以正常工作。
但是,使用管工啟動不會返回用於測試運行的IP。 我從下載包中安裝了heroku工具帶,並從終端安裝了pip django-toolbelt。 有人知道怎么了嗎?
提前致謝。
答案: http : //thefreshlybaked.wordpress.com/2014/07/09/setting-up-django-on-heroku-with-postgresql/
https://devcenter.heroku.com/articles/procfile#developing-locally-with-foreman
看一下文檔,默認情況下工頭在端口5000上加載。我相信您可以將其更改為procfile中所需的任何端口。
我也面臨同樣的問題。 使用pip安裝gunicorn == 0.16.1之后,我解決了我的問題...希望這也能解決您的問題。...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.