![](/img/trans.png)
[英]How to fix ' code=H14 desc=“No web processes running” ' error on flask heroku app
[英]H14 Heroku “No web processes running” for Flask, Python
我使用 Python 和 Heroku web 框架編寫了一個小型站點。 面臨應用程序無法運行的問題,但是,當在本地(通過我的終端)運行時,一切正常。 日志說以下內容:
2020-05-20T06:19:35.538634+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=reviewssystem.herokuapp.com request_id=00dd8d00-f6b0-471b-bab7-65d065c60025 fwd="109.229.183.36" dyno= connect= service= status=503 bytes= protocol=https
我嘗試使用heroku ps:scale web=1
並得到這個:
Scaling dynos... !
▸ Couldn't find that process type (web).
heroku ps
output: No dynos on ⬢ reviewssystem
過程文件: web: gunicorn app:app
。 我還嘗試使用web: python app.py
並沒有幫助。
要求.txt:
click==7.1.2
Flask==1.1.2
Flask-SQLAlchemy==2.4.1
gunicorn==20.0.4
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.0
SQLAlchemy==1.3.16
Werkzeug==1.0.1
構建日志:
-----> Python app detected
-----> No change in requirements detected, installing from cache
-----> Installing SQLite3
-----> Installing requirements with pip
-----> Discovering process types
Procfile declares types -> (none)
-----> Compressing...
Done: 47.6M
-----> Launching...
Released v8
https://reviewssystem.herokuapp.com/ deployed to Heroku
那么,我應該怎么做才能修復它?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.