R
Railway10mo ago
oToMaTiX

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
Percy10mo ago
Project ID: N/A
Percy
Percy10mo ago
Project ID: N/A
oToMaTiX
oToMaTiXOP10mo ago
No description
oToMaTiX
oToMaTiXOP10mo ago
Project ID:d3345802-41e9-4f63-82c9-63d7f0fcf52a
Brody
Brody10mo ago
please share your repo
oToMaTiX
oToMaTiXOP10mo ago
No description
No description
oToMaTiX
oToMaTiXOP10mo ago
start command in server.py
No description
Brody
Brody10mo ago
can you share a link to your repo please
oToMaTiX
oToMaTiXOP10mo ago
There are keys there. I'll clean it that'll be the only option. What are you looking for?
Brody
Brody10mo ago
there should never be keys in the repo, even if it's private what kind of app is this?
oToMaTiX
oToMaTiXOP10mo ago
python flask app that host index page and accept post requests to the webhook
Solution
Brody
Brody10mo ago
then you need to run the app with gunicorn
oToMaTiX
oToMaTiXOP10mo ago
i am not at the level to understand to else to maintain them
Brody
Brody10mo ago
use environment variables
oToMaTiX
oToMaTiXOP10mo ago
sound weird. Whats so special in built in flask web server so that railway cant work with it?
Brody
Brody10mo ago
it's a development server only meant for development, nothing to do with railway
oToMaTiX
oToMaTiXOP10mo ago
what stops it from going throug that wont stop the gunicorn?
Brody
Brody10mo 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
oToMaTiXOP10mo ago
gunicorn works. I'm still curious what is the difference for railway
Brody
Brody10mo ago
it's not specific to railway, it's just proper practice
oToMaTiX
oToMaTiXOP10mo ago
i don't see this option. should i do something?
No description
No description
Brody
Brody10mo ago
sorry that option was removed as it was being used incorrectly
oToMaTiX
oToMaTiXOP10mo ago
thank you
Want results from more Discord servers?
Add your server