[英]django heroku foreman start error code 1
继django heroku页面开始逐字逐句。 https://devcenter.heroku.com/articles/django
在领班开始步骤,领班没有正确运行。 ProcFile内容,
web: gunicorn hellodjango.wsgi
要求内容:
Django==1.5.1
dj-database-url==0.2.1
gunicorn==0.17.4
psycopg2==2.4.5
完全按照下面脚本目录中的tutorial,gunicorn,procfile和requirements进入虚拟env,wsgi.py文件位于目录hellodjango,路径为C:\\hellodjango2\\newvirtualenv\\Scripts\\hellodjango
python和python / scripts位于pathfile上。
这是输出
(newvirtualenv) C:\hellodjango2\newvirtualenv\Scripts>foreman start
09:48:58 web.1 | started with pid 3580
09:48:58 web.1 | exited with code 1
09:48:58 system | sending SIGKILL to all processes
在今天的heroku文档之后,它建议您使用:
$ heroku local web
而不是foreman
。 你能尝试一下吗?
你可以做的另一件事就是检查一切是否正常工作是自己运行django: python manage.py runserver
,如果它不工作,你可以添加该调用生成的回溯吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.