首次将 Flask 应用部署到 Heroku 的困难

时间:2021-04-27 00:09:04

标签: heroku

我正在 heroku 中部署第一个 Flask 应用程序,但遇到了一些我无法弄清楚的错误。 Procfile 是 --> web: gunicorn app:app 要求.txt:

我得到的错误是:

``` 'sklearn.ensemble.forest'**
``` 2021-04-26T23:38:52.683083+00:00 app[web.1]: [2021-04-26 23:38:52 +0000] [7] [INFO] Worker 
``` exiting (pid: 7)
``` 2021-04-26T23:38:52.851532+00:00 app[web.1]: [2021-04-26 23:38:52 +0000] [4] [WARNING] Worker 
``` with pid 7 was terminated due to signal 15
``` 2021-04-26T23:38:52.938143+00:00 app[web.1]: [2021-04-26 23:38:52 +0000] [4] [INFO] Shutting 
``` down: Master
``` 2021-04-26T23:38:52.938211+00:00 app[web.1]: [2021-04-26 23:38:52 +0000] [4] [INFO] Reason: 
``` *Worker failed to boot.*
``` 2021-04-26T23:38:53.048829+00:00 heroku[web.1]: **Process exited with status 3**
``` 2021-04-26T23:38:53.136363+00:00 heroku[web.1]: **State changed from up to crashed**
``` 2021-04-26T23:38:59.000000+00:00 app[api]: **Build succeeded**
``` 2021-04-26T23:39:03.908807+00:00 heroku[router]: **at=error code=H10 desc="App crashed"**
```method=GET  
``` path="/" 
``` 2021-04-26T23:39:04.254733+00:00 heroku[router]: **at=error code=H10 desc="App crashed"** method=GET
``` path="/favicon.ico" 


 [1]: https://i.stack.imgur.com/dH7ga.jpg

0 个答案:

没有答案