Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.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
heroku错误bash:gunicorn:未找到命令_Heroku - Fatal编程技术网

heroku错误bash:gunicorn:未找到命令

heroku错误bash:gunicorn:未找到命令,heroku,Heroku,几个月前,我把我的烧瓶应用程序推到了Heroku(live) 以下是本地主机的屏幕截图: 但我试图更新它,但它不断崩溃: 下面是stackoverflow解决方案: 但是当我把它更新到新版本时,它给了我一个错误 Heroku+gunicorn不工作(bash:gunicorn:未找到命令) web:gunicorn myapp:app--日志文件=- 但应用程序在部署时崩溃: bash:gunicorn:未找到命令 我尝试添加heroku python构建包,但没有成功。如果我回滚到以前的提交(

几个月前,我把我的烧瓶应用程序推到了Heroku(live) 以下是本地主机的屏幕截图: 但我试图更新它,但它不断崩溃:

下面是stackoverflow解决方案:

但是当我把它更新到新版本时,它给了我一个错误 Heroku+gunicorn不工作(bash:gunicorn:未找到命令)

web:gunicorn myapp:app--日志文件=- 但应用程序在部署时崩溃:

bash:gunicorn:未找到命令 我尝试添加heroku python构建包,但没有成功。如果我回滚到以前的提交(其中requirements.txt和Procile都未更改)

我仍然得到相同的错误日志:

2018-07-10T21:52:11.855058+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shakespeare-tweet-pr-16.herokuapp.com request_id=068bae51-052e-4bf4-9b25-336c9a036709 fwd="165.124.160.252" dyno= connect= service= status=503 bytes= protocol=https
2018-07-10T21:52:31.144603+00:00 heroku[web.1]: State changed from crashed to starting
2018-07-10T21:52:34.984576+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2018-07-10T21:52:36.771041+00:00 heroku[web.1]: Process exited with status 127
2018-07-10T21:52:36.714985+00:00 app[web.1]: bash: gunicorn: command not found
2018-07-10T21:52:36.787124+00:00 heroku[web.1]: State changed from starting to crashed
2018-07-10T21:52:36.789041+00:00 heroku[web.1]: State changed from crashed to starting
2018-07-10T21:52:40.971471+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2018-07-10T21:52:42.677787+00:00 heroku[web.1]: Process exited with status 127
2018-07-10T21:52:42.692987+00:00 heroku[web.1]: State changed from starting to crashed
2018-07-10T21:52:42.618587+00:00 app[web.1]: bash: gunicorn: command not found
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
Connection to log stream failed. Please try again later.

I would appreciate any help with this issue.

好的,这里的问题是shakespeare-tweet-pr-16应用程序是使用pipenv构建的,因此它将从Pipfile中获取依赖项,而不是requirements.txt。Pipfile仅将flask列为依赖项,因此未安装Gunicorn,因此无法找到它。我建议您从应用程序中删除PIP文件。另一个选项是使用完整的依赖项列表更新PIP文件