R
Railway10mo ago
xboxking

FLASK APP failed to deploy

I used the refernce flask project idk why maybe the build/run command i put in was incorrect?
14 Replies
Percy
Percy10mo ago
Project ID: N/A
xboxking
xboxking10mo ago
this is the file structure
xboxking
xboxking10mo ago
MantisInABox
MantisInABox10mo ago
Did you deploy the flask template? If you deploy the template, it will copy the contents to your github account for you automatically.
xboxking
xboxking10mo ago
No
MantisInABox
MantisInABox10mo ago
Your procfile needs to be Procfile with a capital
xboxking
xboxking10mo ago
I just edited it Should i use the flask template? Since i already had the project i thoought it would just manually add the files and changes
MantisInABox
MantisInABox10mo ago
I completely understand. What is the contents of your Procfile?
xboxking
xboxking10mo ago
web: gunicorn main:app I should add python app.py to the run command right?
MantisInABox
MantisInABox10mo ago
You don't have a main.py you have an app.py Change your Procfile to web: gunicorn app:app
xboxking
xboxking10mo ago
Thank you I did
xboxking
xboxking10mo ago
now its just
xboxking
xboxking10mo ago
this in the webpage
MantisInABox
MantisInABox10mo ago
Okay, wait a few seconds and try refreshing again, it might not have fully launched yet