R
Railway•8mo ago
alan

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
No description
16 Replies
Percy
Percy•8mo ago
Project ID: e3b076a9-e09a-44e9-a06a-732b5ca69de8
alan
alanOP•8mo ago
e3b076a9-e09a-44e9-a06a-732b5ca69de8
Brody
Brody•8mo ago
use environment variables, set the environment variable in the variables tab of your railway service
alan
alanOP•8mo ago
No description
alan
alanOP•8mo ago
like this?
Brody
Brody•8mo ago
yep! then just use os.getenv() in code
alan
alanOP•8mo ago
on which line im not sure how os.getenv() works
alan
alanOP•8mo ago
😅
No description
Brody
Brody•8mo ago
well there you go
alan
alanOP•8mo ago
well it doesnt work idk why
Brody
Brody•8mo ago
can you provide more information then "doesn't work"
alan
alanOP•8mo ago
it says Application failed to respond on the domain
Brody
Brody•8mo ago
what kind of app
alan
alanOP•8mo ago
Flask?
Brody
Brody•8mo ago
you would need to run it with gunicorn then
Want results from more Discord servers?
Add your server