簡體   English   中英

Heroku Flask 應用程序部署:持續的 H14 失敗消息(無 Web 進程正在運行)

[英]Heroku Flask App Deployment: Continuous H14 Failure Message (No Web Processes Running)

我正在嘗試在 Heroku 上部署一個 python Flask 應用程序,但我不斷收到 H14(沒有運行 Web 進程)錯誤。 這是我的日志:

2021-07-17T03:02:17.638037+00:00 heroku[router]: at=error code=H14 desc="No web processes running ..."

我試過ps:scale web=1但我也不斷收到以下錯誤:

Scaling dynos... !
▸    Couldn't find that process type (web).

我的構建日志:

remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: heroku/python
remote: -----> Python app detected
remote: -----> Using Python version specified in runtime.txt
remote: -----> No change in requirements detected, installing from cache
remote: -----> Using cached install of python-3.9.6
remote: -----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
...
remote: -----> Discovering process types
remote: 
remote: -----> Compressing...
remote:        Done: 361.4M
remote: -----> Launching...
...

當我運行heroku ps

No dynos on ⬢ <project-name>

Procfile(是的,大寫 P):

web:gunicorn main:app

在這一點上,我完全感到困惑。 如果有人可以提供任何幫助,將不勝感激! 謝謝!

-電報

@charchit 大功告成,他/她的回答是正確的!

-電報

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM