mine run.py is outside of mine app folder which content all the code.
Asked
Active
Viewed 45 times
-1
-
Does this answer your question? [Heroku Flask Tutorial Procfile Meaning](https://stackoverflow.com/questions/30178792/heroku-flask-tutorial-procfile-meaning) – Gino Mempin Oct 12 '21 at 23:20
-
Does this answer your question? [How can I modify Procfile to run Gunicorn process in a non-standard folder on Heroku?](https://stackoverflow.com/q/16416172/2745495) – Gino Mempin Oct 12 '21 at 23:24
-
Please provide enough code so others can better understand or reproduce the problem. – Community Oct 14 '21 at 14:55
1 Answers
0
Looks like you are running Heroku instance. By the way, you better say it in question. I can guess it only after saw Procfile on screenshot. Did you set env variable?
heroku config:set FLASK_APP=run.py

VictorShneer
- 36
- 3
-
Hi thanks you for the reply .... is heroku config:set FLASK_APP=run.py set in Procfile ? i need mine app to run gunicorn on heroku – Tan Zeng Yang Oct 13 '21 at 01:05
-
no-no. you just run this command in the Heroku CLI. Or you can try to set it manually in the heroku account. You can set config variables in the heroku app settings. Try to set there FLASK_APP=run.py – VictorShneer Oct 13 '21 at 14:23
-
this is the reference for heroku cli https://devcenter.heroku.com/articles/heroku-cli good stuff – VictorShneer Oct 13 '21 at 14:24