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