Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django Heroku gunicorn缺席_Django_Heroku_Gunicorn - Fatal编程技术网

Django Heroku gunicorn缺席

Django Heroku gunicorn缺席,django,heroku,gunicorn,Django,Heroku,Gunicorn,正在尝试将我的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[w

正在尝试将我的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中,并且已经推动了它,所以它应该都能工作。该应用程序与foreman一起运行


有人对可能出现的问题有什么建议吗?

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

试试这个:

 heroku run pip install gunicorn

看看会发生什么。

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

试试这个:

 heroku run pip install gunicorn

看看会发生什么。

我不小心推了一个.bash_配置文件,它已经进入了我的项目,并且正在设置对heroku堆栈造成严重破坏的路径。

我不小心推了一个.bash_配置文件,它已经进入了我的项目,并且正在设置对heroku堆栈造成严重破坏的路径。

我只是按照Jack Shedd说的做了,这对我来说很好

运行:

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

git push heroku master

我只是照杰克·谢德说的做了,这对我来说很好

运行:

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

git push heroku master

谢谢这导致找不到bash:pip:command。根据这一点,目前还不清楚它是否会起作用。我还尝试了heroku run bash,它给了我一个bash终端。不确定下一步是什么..好的,那么您没有正确的构建包。键入heroku config并让我知道BUILDPACK\u URL是什么。我这样做了,但它没有返回BUILDPACK\u URL。我只得到数据库URL和HEROKU POSTGRESQL MAROON URL,它们都是postgres://前缀URL。谢谢。好吧,如果找不到pip,不管出于什么原因,它都不会认为它是Python应用程序。运行heroku配置:设置BUILDPACK\u URL=https://github.com/heroku/heroku-buildpack-python,在回购协议中进行承诺并推送。谢谢。这导致找不到bash:pip:command。根据这一点,目前还不清楚它是否会起作用。我还尝试了heroku run bash,它给了我一个bash终端。不确定下一步是什么..好的,那么您没有正确的构建包。键入heroku config并让我知道BUILDPACK\u URL是什么。我这样做了,但它没有返回BUILDPACK\u URL。我只得到数据库URL和HEROKU POSTGRESQL MAROON URL,它们都是postgres://前缀URL。谢谢。好吧,如果找不到pip,不管出于什么原因,它都不会认为它是Python应用程序。运行heroku配置:设置BUILDPACK\u URL=https://github.com/heroku/heroku-buildpack-python,在回购协议中进行提交和推送。