django - 由Heroku中的gunicorn procfile引起的错误

标签 django heroku

我正在尝试使用提供的文档在Heoroku上部署一个小型django应用。但是我的应用程序无法运行,当我查看Heroku上的日志时,问题似乎出在procfile上。这是procfile的内容。这是正确的语法吗?

web: gunicorn hashem3.wsgi -b 0.0.0.0:$PORT

这是Heroku日志显示的内容:
2012-07-21T03:02:58+00:00 heroku[slugc]: Slug compilation started
2012-07-21T03:04:28+00:00 heroku[api]: Add shared-database:5mb add-on by 
2012-07-21T03:04:28+00:00 heroku[api]: Release v2 created by xxx
2012-07-21T03:04:28+00:00 heroku[api]: Add PYTHONUNBUFFERED, PYTHONPATH, PATH, LD_LIBRARY_PATH, LANG, PYTHONHOME, LIBRARY_PATH, PYTHONHASHSEED config by xxx
2012-07-21T03:04:28+00:00 heroku[api]: Release v3 created by xxx
2012-07-21T03:04:28+00:00 heroku[api]: Release v4 created by xxx
2012-07-21T03:04:28+00:00 heroku[api]: Deploy 9805b83 by xxx
2012-07-21T03:04:29+00:00 heroku[slugc]: Slug compilation finished
2012-07-21T03:04:30+00:00 heroku[web.1]: Starting process with command `gunicorn hashem3.wsgi -b 0.0.0.0:8157`
2012-07-21T03:04:31+00:00 app[web.1]: bash: gunicorn: command not found
2012-07-21T03:04:32+00:00 heroku[web.1]: Process exited with status 127
2012-07-21T03:04:32+00:00 heroku[web.1]: State changed from starting to crashed
2012-07-21T03:04:32+00:00 heroku[web.1]: State changed from crashed to starting
2012-07-21T03:04:34+00:00 heroku[web.1]: Starting process with command `gunicorn hashem3.wsgi -b 0.0.0.0:54714`
2012-07-21T03:04:35+00:00 app[web.1]: bash: gunicorn: command not found
2012-07-21T03:04:36+00:00 heroku[web.1]: Process exited with status 127
2012-07-21T03:04:36+00:00 heroku[web.1]: State changed from starting to crashed
2012-07-21T03:05:17+00:00 heroku[router]: Error H10 (App crashed) -> GET floating-atoll-1969.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-07-21T03:05:18+00:00 heroku[router]: Error H10 (App crashed) -> GET floating-atoll-1969.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 by

tes =

最佳答案

您忘记将guinicorn作为依赖项添加到您的requirements.txt文件中。

关于django - 由Heroku中的gunicorn procfile引起的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11589404/

相关文章:

python - 如何从多对多表中检索字段?

node.js - Heroku+Node.js 如何克隆node_modules?

mysql - 您如何为 MySQL 和 Postgres 编写不区分大小写的查询?

git - 尝试设置 heroku 暂存站点 - "Resource not found "

python - Heroku 在部署时按预期执行 collectstatic?

python - Django 。如何在表单 ManyToMany 字段中显示为选择(下拉列表)

django - FileField 无法与 Django 中的 ArrayField 一起使用

html中的Python django自定义查询结果

python - Django 1.9 在两个页面形式中使用 django session

ruby-on-rails - 在 Heroku 上充当标签