H14 Heroku No web processes running for Flask, Python
I solved the problem by removing Procfile
and re-creating it. Git for some reason did not recognize this Procfile
and named it something like Pro/143/file
(I don't know why).
So, if you encounter such a problem, try to re-create your Procfile.
Anyway, it helps for me.
P.S I left the contents of the file as before: web: gunicorn app:app
.
As you can see, everything works:
How to fix ' code=H14 desc=No web processes running ' error on flask heroku app
Usually it is either
- Heroku does not know which web process to start. This is fixed with Procfile.
Procfile:
web: python myServer.py
- Web process is not listening to right port. This is fixed by web server start 6 environment configuration
Get the right port from PORT variable:
port = int(os.environ.get('PORT', 5000))
See: Deploying Flask app to Heroku
Related Topics
Staleelementreferenceexception on Python Selenium
What Do I Use on Linux to Make a Python Program Executable
How to Use Export With Python on Linux
Tkinter: Attributeerror: Nonetype Object Has No Attribute ≪Attribute Name≫
Iterating Over Dictionaries Using 'For' Loops
Why Doesn't Calling a String Method Do Anything Unless Its Output Is Assigned
How to Type Hint a Method With the Type of the Enclosing Class
Best Way to Strip Punctuation from a String
How to Parse Data in Json Format
Check If a Given Key Already Exists in a Dictionary
Selenium.Common.Exceptions.Invalidselectorexception With "Span:Contains('String')"
Trouble Installing Scipy in Virtualenv on a Amazon Ec2 Linux Micro Instance
How to Sort a Dictionary by Value
How to List All Files of a Directory
How to Group Dataframe Rows into List in Pandas Groupby
Is It Pythonic to Use List Comprehensions For Just Side Effects