Trying to run a python api
the api console says Running on http://127.0.0.1:5000 but a domain wasnt made and i cant access it. even with a munal domain it isnt working
Solution:Jump to solution
you would need gunicorn in your requirements.txt, and with that then your start command would likely need to be
gunicorn flask_app:app
assuming the flask constructor is named app
13 Replies
Project ID:
e718dda2-ed4c-45dc-90ac-2e69b6e4e9f0
e718dda2-ed4c-45dc-90ac-2e69b6e4e9f0
what does "munal domain" mean?
settings/public networking/generate domain
deploy logs please https://bookmarklets.up.railway.app/log-downloader/
you're trying to use a development server, please use gunicorn for flask
i saw this:
how would I edit my python file?
like down here?
your start command needs to be what your first code block shows
/bin/bash: line 1: gunicorn: command not found
my main python file is called flask_app.py
Solution
you would need gunicorn in your requirements.txt, and with that then your start command would likely need to be
gunicorn flask_app:app
assuming the flask constructor is named app
yup it was that, thanks so much
it works now
no problem!