1

尝试将我的 Django 应用程序上传到 Heroku 并获得:

2013-05-22T23:04:55.687398+00:00 heroku[web.1]: Starting process with command `gunicorn main.wsgi`
2013-05-22T23:04:56.508882+00:00 app[web.1]: bash: gunicorn: command not found
2013-05-22T23:04:57.958215+00:00 heroku[web.1]: State changed from starting to crashed
2013-05-22T23:04:57.941729+00:00 heroku[web.1]: Process exited with status 127
2013-05-22T23:05:06.019313+00:00 heroku[web.1]: Error R99 (Platform error) -> Failed to launch the dyno within 10 seconds
2013-05-22T23:05:06.019520+00:00 heroku[web.1]: Stopping process with SIGKILL

我知道 gunicorn 在 requirements.txt 中并且已经推动了它,所以它应该可以正常工作。该应用程序与工头一起运行。

有人对可能出现的问题有任何建议吗?

4

3 回答 3

3

有时,Heroku 的构建包会以完全奇怪的方式失败。

尝试这个:

 heroku run pip install gunicorn

走着瞧吧。

于 2013-05-23T05:30:35.137 回答
1

我不小心推送了一个已经进入我的项目的 .bash_profile 并且正在设置 PATH 导致对 heroku 堆栈的破坏。

于 2013-06-13T18:32:45.567 回答
0

我只是按照 Jack Shedd 所说的做了,对我来说效果很好。

跑:

herouku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-python

然后,在您的存储库中进行提交。最后,做:

git push heroku master
于 2016-04-21T02:18:30.007 回答