Heroku Django foreman启动错误,退出代码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
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
在我把代码推送到Heroku之后,一切都运行得很好。
不过,使用foreman start命令时,没有返回测试运行的IP地址。我从下载包中安装了Heroku工具包,并通过终端安装了django-toolbelt。有人知道哪里出问题了吗?
提前谢谢大家。
答案在这里:
http://thefreshlybaked.wordpress.com/2014/07/09/setting-up-django-on-heroku-with-postgresql/2 个回答
1
看看这个文档,默认情况下,foreman会在5000端口运行。我想你可以在procfile里把它改成你想要的任何端口。
1
我也遇到过同样的问题。在用pip安装了gunicorn==0.16.1之后,我的问题解决了……希望这也能帮你解决问题……