简体   繁体   English

django heroku工头启动错误代码1

[英]django heroku foreman start error code 1

Following the getting started with django heroku page verbatim. 继django heroku页面开始逐字逐句。 https://devcenter.heroku.com/articles/django https://devcenter.heroku.com/articles/django

On the foreman start step, foreman is not running correctly. 在领班开始步骤,领班没有正确运行。 ProcFile contents, ProcFile内容,

web: gunicorn hellodjango.wsgi

Requirements contents: 要求内容:

Django==1.5.1
dj-database-url==0.2.1
gunicorn==0.17.4
psycopg2==2.4.5

enter virtual env exactly as tutorial, gunicorn, procfile and requirements located in scripts directory below, the wsgi.py file is located in directory hellodjango with pathline C:\\hellodjango2\\newvirtualenv\\Scripts\\hellodjango 完全按照下面脚本目录中的tutorial,gunicorn,procfile和requirements进入虚拟env,wsgi.py文件位于目录hellodjango,路径为C:\\hellodjango2\\newvirtualenv\\Scripts\\hellodjango

python and python/scripts are located on pathfile. python和python / scripts位于pathfile上。

here is the output 这是输出

(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

Following the today's heroku documentation, it advises you to use: 在今天的heroku文档之后,它建议您使用:

$ heroku local web

instead of foreman . 而不是foreman Can you give it a try? 你能尝试一下吗?

Another thing you could do to check if everything is working fine is to run the django by itself: python manage.py runserver , if its not working, can you add the traceback generated by that call? 你可以做的另一件事就是检查一切是否正常工作是自己运行django: python manage.py runserver ,如果它不工作,你可以添加该调用生成的回溯吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM