首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku Django工头在代码1 mac中退出错误

Heroku Django工头在代码1 mac中退出错误
EN

Stack Overflow用户
提问于 2014-06-24 17:34:33
回答 2查看 1.8K关注 0票数 0

工头启动

代码语言:javascript
复制
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

代码语言:javascript
复制
web: gunicorn herokudjango.wsgi

requirements.txt

代码语言:javascript
复制
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推到heroku之后,它工作得很好。

但是,使用foreman并不返回用于测试运行的ip。我从下载包中安装了heroku工具箱,从终端安装了pip django工具箱。有人知道怎么回事吗?

提前谢谢。

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

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-07-07 08:09:13

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

票数 1
EN

Stack Overflow用户

发布于 2014-06-27 09:23:35

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

查看一下文档,默认情况下,领班在端口5000上加载。我相信你可以在procfile中把它更改成你想要的任何端口。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24392907

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档