how to have railways know my secret key
this is how i've set up my secret key on github. But this doesnt work for railways, so how do i hide my key while giving it to railways. the key is stored in a config.py file
16 Replies
Project ID:
e3b076a9-e09a-44e9-a06a-732b5ca69de8
e3b076a9-e09a-44e9-a06a-732b5ca69de8
use environment variables, set the environment variable in the variables tab of your railway service
like this?
yep! then just use os.getenv() in code
on which line
im not sure how os.getenv() works
😅
well there you go
well it doesnt work
idk why
can you provide more information then "doesn't work"
it says Application failed to respond
on the domain
what kind of app
Flask?
you would need to run it with gunicorn then