R
Railway16mo 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
Percy16mo ago
Project ID: N/A
xboxking
xboxkingOP16mo ago
this is the file structure
xboxking
xboxkingOP16mo ago
MantisInABox
MantisInABox16mo 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
xboxkingOP16mo ago
No
MantisInABox
MantisInABox16mo ago
Your procfile needs to be Procfile with a capital
xboxking
xboxkingOP16mo 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
MantisInABox16mo ago
I completely understand. What is the contents of your Procfile?
xboxking
xboxkingOP16mo ago
web: gunicorn main:app I should add python app.py to the run command right?
MantisInABox
MantisInABox16mo ago
You don't have a main.py you have an app.py Change your Procfile to web: gunicorn app:app
xboxking
xboxkingOP16mo ago
Thank you I did
xboxking
xboxkingOP16mo ago
now its just
xboxking
xboxkingOP16mo ago
this in the webpage
MantisInABox
MantisInABox16mo ago
Okay, wait a few seconds and try refreshing again, it might not have fully launched yet
Want results from more Discord servers?
Add your server