【发布时间】:2013-05-29 19:02:53
【问题描述】:
按照 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
完全按照教程输入虚拟环境,
gunicorn、procfile 和 requirements 位于下面的 scripts 目录中,wsgi.py 文件位于 hellodjango 目录中,路径为C:\hellodjango2\newvirtualenv\Scripts\hellodjango
python 和 python/scripts 位于路径文件中。
这是输出
(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
【问题讨论】:
-
您使用的是 Windows 吗?看看:[Gunicorn 不能在 Windows 上运行][1](和类似的答案 [这里][2])[1]:stackoverflow.com/questions/11087682/… [2]:stackoverflow.com/questions/12627885/…
-
看起来你在 Windows 上。只需在您的机器上安装一个 linux 虚拟机,并在需要时使用它。
标签: python django heroku foreman