我正在尝试在Heroku上部署Django应用程序。部署并推送更改成功。但是打开后,它发出了应用程序错误,请检查您的日志以获取详细信息。
这是我终端上的日志详细信息。
这是Heroku上的日志详细信息。
2018-07-04T17:21:45.827547+00:00 heroku[web.1]: State changed from crashed to starting
2018-07-04T17:21:51.960062+00:00 heroku[web.1]: Starting process with command `gunicorn zoomtail.wsgi --log-file -`
2018-07-04T17:21:53.000000+00:00 app[api]: Build succeeded
2018-07-04T17:21:53.804826+00:00 heroku[web.1]: Process exited with status 127
2018-07-04T17:21:53.758720+00:00 app[web.1]: bash: gunicorn: command not found
2018-07-04T17:21:53.822387+00:00 heroku[web.1]: State changed from starting to crashed
2018-07-04T17:22:39.313982+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=peaceful-olympic-84671.herokuapp.com request_id=2f38b8b0-9220-4f00-baa9-df9d2f1c54f7 fwd="106.206.63.203" dyno= connect= service= status=503 bytes= protocol=https
2018-07-04T17:22:40.055033+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=peaceful-olympic-84671.herokuapp.com request_id=3e5fb340-96f6-44c7-ad0a-3be4815fa5dc fwd="106.206.63.203" dyno= connect= service= status=503 bytes= protocol=https
我猜问题出在gunicorn,因为它说bash:找不到gunicorn命令。但是我已经安装了它,将其添加到Procfile和requirements.txt中,尝试了类似的stackoverflow问题中的方法,但无济于事。请帮忙。