状态从最高更改为在Heroku上崩溃

时间:2019-11-22 16:12:55

标签: python github heroku

这是我第一次尝试将任何东西部署到Heroku。我以双线方式构建了一个交互式仪表板,并希望将其部署在Heroku上。

我创建了一个procfile:

web: gunicorn app:server

一个python buildpack以及我认为需要的所有内容(至少与我阅读的内容一样)才能部署仪表板。但是,当我尝试将其部署到生产环境时,会收到此错误消息

2019-11-22T16:04:02.687514+00:00 app[web.1]: 
2019-11-22T16:04:04.726689+00:00 heroku[web.1]: State changed from up to crashed
2019-11-22T16:04:04.664117+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/favicon.ico" host=boxingvisualisationdashboard.herokuapp.com request_id=6ee23d07-c0d4-442f-a365-c0a82ee86b46 fwd="196.14.178.118" dyno=web.1 connect=56ms service=6999ms status=503 bytes=0 protocol=https
2019-11-22T16:04:04.590084+00:00 heroku[web.1]: Process running mem=1279M(250.0%)
2019-11-22T16:04:04.590276+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2019-11-22T16:04:04.590364+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-11-22T16:04:04.606590+00:00 heroku[web.1]: Process running mem=1194M(233.4%)
2019-11-22T16:04:04.606688+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2019-11-22T16:04:04.606770+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-11-22T16:04:04.709718+00:00 heroku[web.1]: Process exited with status 137

更新:

我添加了runtime.txt文件:

python-3.7.4

在我的存储库中有一个app.py文件,其中包含用于构建交互式仪表板的代码。

但是我发现尝试部署时没有收到此错误消息:

2019-11-22T16:56:12.053124+00:00 app[web.1]: Failed to find application: 'app'
2019-11-22T16:56:12.053155+00:00 app[web.1]: Failed to find application: 'app'
2019-11-22T16:56:15.000000+00:00 app[api]: Build succeeded
2019-11-22T16:56:44.041043+00:00 heroku[web.1]: State changed from up to crashed
2019-11-22T16:56:43.966058+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=boxingvisualisationdashboard.herokuapp.com request_id=e8f5034e-84ec-4832-8cbd-2e63504f0602 fwd="196.14.178.118" dyno=web.1 connect=1ms service=22913ms status=503 bytes=0 protocol=https
2019-11-22T16:56:44.016250+00:00 heroku[web.1]: Process exited with status 4
2019-11-22T16:56:44.851526+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=boxingvisualisationdashboard.herokuapp.com request_id=14d271f9-4add-4f2b-85c1-a4154fbf8e68 fwd="196.14.178.118" dyno= connect= service= status=503 bytes= protocol=https

这是我的仓库的链接:

repo

0 个答案:

没有答案