Anonymous
TRIALOP
2 years ago
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
18 Replies
2 years ago
use environment variables, set the environment variable in the variables tab of your railway service
2 years ago
yep! then just use os.getenv() in code
2 years ago
2 years ago
well there you go
2 years ago
can you provide more information then "doesn't work"
2 years ago
what kind of app
2 years ago
you would need to run it with gunicorn then

