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

