Heroku Django foreman启动错误已退出,代码为1 m

2024-05-18 17:51:25 发布

您现在位置:Python中文网/ 问答频道 /正文

工头开始

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

程序文件

^{pr2}$

在要求.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工具带,从终端安装了pipdjango工具带。有人知道怎么回事吗?在

提前谢谢。在

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


Tags: 工具djangocomherokuwithcodestaticdj
2条回答

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

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

我也面临同样的问题。安装gunicorn后==0.16.1 我用pip解决了我的问题。。。希望这也能解决你的问题。。。。在

相关问题 更多 >

    热门问题