【发布时间】:2015-05-09 06:47:11
【问题描述】:
我想在 Heroku 上部署一个非常基本的 Django 应用程序。我按照说明进行操作,但浏览器显示 Heroku 错误页面和 heroku 日志显示
bash: gunicorn: command not found
我的 requirements.txt 中有 gunicorn,并按照文档的说明配置了 wsgi.py 和 Procfile。我还能尝试什么?
编辑:我还尝试在 Heroku (heroku run pip install gunicorn) 上手动安装 gunicorn,效果很好,所以我很确定 gunicorn 已安装。为什么 Heroku 找不到?
编辑2:看来我可以手动安装gunicorn(heroku run bash 然后pip install gunicorn:
~ $ gunicorn
usage: gunicorn [OPTIONS] [APP_MODULE]
gunicorn: error: No application module specified.
但是当我注销并再次登录 bash 时,我得到:
~ $ gunicorn
bash: gunicorn: command not found
Heroku 似乎安装但随后丢弃 gunicorn。怎么可能?
【问题讨论】:
-
你能发布你的 Procfile 和 project.wsgi 文件吗?