Not accessable from the web

PORT variable set to 4242 but still nothing, localy running fine
No description
Solution:
then you need to run the app with gunicorn
Jump to solution
23 Replies
Percy
Percy5mo ago
Project ID: N/A
Percy
Percy5mo ago
Project ID: N/A
oToMaTiX
oToMaTiX5mo ago
No description
oToMaTiX
oToMaTiX5mo ago
Project ID:d3345802-41e9-4f63-82c9-63d7f0fcf52a
Brody
Brody5mo ago
please share your repo
oToMaTiX
oToMaTiX5mo ago
No description
No description
oToMaTiX
oToMaTiX5mo ago
start command in server.py
No description
Brody
Brody5mo ago
can you share a link to your repo please
oToMaTiX
oToMaTiX5mo ago
There are keys there. I'll clean it that'll be the only option. What are you looking for?
Brody
Brody5mo ago
there should never be keys in the repo, even if it's private what kind of app is this?
oToMaTiX
oToMaTiX5mo ago
python flask app that host index page and accept post requests to the webhook
Solution
Brody
Brody5mo ago
then you need to run the app with gunicorn
oToMaTiX
oToMaTiX5mo ago
i am not at the level to understand to else to maintain them
Brody
Brody5mo ago
use environment variables
oToMaTiX
oToMaTiX5mo ago
sound weird. Whats so special in built in flask web server so that railway cant work with it?
Brody
Brody5mo ago
it's a development server only meant for development, nothing to do with railway
oToMaTiX
oToMaTiX5mo ago
what stops it from going throug that wont stop the gunicorn?
Brody
Brody5mo ago
it can be made to work, but that's not the point, it shouldn't be used, gunicorn is what you should be using when on railway
oToMaTiX
oToMaTiX5mo ago
gunicorn works. I'm still curious what is the difference for railway
Brody
Brody5mo ago
it's not specific to railway, it's just proper practice
oToMaTiX
oToMaTiX5mo ago
i don't see this option. should i do something?
No description
No description
Brody
Brody5mo ago
sorry that option was removed as it was being used incorrectly
oToMaTiX
oToMaTiX5mo ago
thank you