【问题标题】:Application error - When uploading my app on Heroku应用程序错误 - 在 Heroku 上上传我的应用程序时
【发布时间】:2021-12-06 14:40:33
【问题描述】:

在 Heroku 上上传我的 Django 应用

应用程序发生错误,无法提供您的页面。如果您是应用程序所有者,请查看您的日志以获取详细信息。您可以在 Heroku CLI 中使用命令 heroku logs --tail

执行此操作

heroku 日志:

2021-10-19T10:46:06.255667+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=carpriceread.herokuapp.com request_id=704fd2ae-c1b2-4a0c-b359-dc215038a6f6 fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
2021-10-19T10:55:56.839196+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=carpriceread.herokuapp.com request_id=837a3401-418a-4063-91ec-2a97c89ada73 fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
2021-10-19T10:55:57.205478+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=carpriceread.herokuapp.com request_id=63d1e63e-f0aa-4f54-9989-7c7a423bc21d fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
2021-10-19T12:43:41.062044+00:00 heroku[web.1]: State changed from crashed to starting
2021-10-19T12:43:43.722991+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2021-10-19T12:43:44.543820+00:00 app[web.1]: bash: gunicorn: command not found
2021-10-19T12:43:44.669170+00:00 heroku[web.1]: Process exited with status 127
2021-10-19T12:43:44.788929+00:00 heroku[web.1]: State changed from starting to crashed
2021-10-19T16:27:49.633265+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=carpriceread.herokuapp.com request_id=6ef8172a-9ac4-403d-b2ee-4111dfd9767a fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https
2021-10-19T16:27:50.150801+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=carpriceread.herokuapp.com request_id=dbd50e93-7749-47a4-a78d-3aa74b8a450a fwd="49.36.183.69" dyno= connect= service= status=503 bytes= protocol=https

回购链接: https://github.com/tan404/Predict-Car-Selling-Price

【问题讨论】:

    标签: heroku


    【解决方案1】:

    如果您在您的应用程序中使用 virtul 环境,那么您必须 pip install gunicorn 并创建一个 procfile,然后您必须在该 procfile 中编写一行以便 heroku 可以检测到它,请参阅下面的视频以获取帮助。 https://youtu.be/Li0Abz-KT78

    【讨论】:

      猜你喜欢
      • 2013-08-25
      • 2023-03-24
      • 2019-08-11
      • 1970-01-01
      • 2018-10-29
      • 1970-01-01
      • 2021-03-10
      • 1970-01-01
      • 2018-05-30
      相关资源
      最近更新 更多