Greetings,
Looking to get some help with deploying my Flask app on heroku. When I try to deploy I am getting the following error (using the heroku log --tails command)
at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=flasknoteapp.herokuapp.com request_id=8f13795b-41f3-4a35-b93b-8f97b98c32f5 fwd="71.235.184.204" dyno= connect= service= status=503 bytes= protocol=https
When deploying on heroku I am using gunicorn and with a Procfile, with the following script.
Procfile
web: gunicorn "flaskr:create_app()"
I can start up the application locally using the script in the procfile (without the βweb:β) in the terminal. I looked up the error code and it seems like an error in the procfile but I do not know what exactly. If anyone has some experience in this I would love some help.
Thanks,
Below is some information about how my project is structured, as I know the procfile script will depend on how the app is executed.
The structure of the application is exactly as the factory layout for flask, more specifically the flaskr set up for flask with SQLAlchemy.
Example of the project structure (so you donβt have to go through the link).
/home/user/Projects/flask-tutorial
βββ flaskr/
β βββ init.py
β βββ db.py
β βββ schema.sql
β βββ auth.py
β βββ blog.py
β βββ templates/
β β βββ base.html
β β βββ auth/
β β β βββ login.html
β β β βββ register.html
β β βββ blog/
β β βββ create.html
β β βββ index.html
β β βββ update.html
β βββ static/
β βββ style.css
βββ tests/
β βββ conftest.py
β βββ data.sql
β βββ test_factory.py
β βββ test_db.py
β βββ test_auth.py
β βββ test_blog.py
βββ venv/
βββ setup.py
βββ MANIFEST.in
The application call is inside the init.py as a function called create_app() in the flaskr directory.
To run the application I set the following command,
$ export FLASK_APP=flaskr
$ export FLASK_ENV=development
$ flask init-db
$ flask run