R
Railway3y ago
olafg

Use Railway variables

Should I put the Railway provided variables in my code, or can I assign one of my env variables to the value of the railway provided var?
13 Replies
olafg
olafgOP3y ago
This doesn't seem to work HAHAHA
Rumon
Rumon3y ago
No need to change your code. You can assign RAILWAY_* variables like that.
olafg
olafgOP3y ago
So the way I did it should work?
Rumon
Rumon3y ago
Yep.
olafg
olafgOP3y ago
Hm, when I do railway variables that var shows up as empty though
Rumon
Rumon3y ago
Generate a domain from "Settings" tab on the service.
olafg
olafgOP3y ago
Already did that
Rumon
Rumon3y ago
That's odd. Are you sure you didn't make any typo? It's RAILWAY_STATIC_URL. That is: ${{ RAILWAY_STATIC_URL }}.
olafg
olafgOP3y ago
Yeah, it is like the screenshot in my settings ${{ RAILWAY_STATIC_URL }}
Rumon
Rumon3y ago
Alright. Then someone from the core team will investigate from their end.
olafg
olafgOP3y ago
Might just be related to CLI because I am actually able to send requests to my app on that URL Hm, well, it won't work if try to run my code via railway run
Rumon
Rumon3y ago
railway run is a bogus thing. Mine didn't work either yesterday (https://discord.com/channels/713503345364697088/1025836714046013480/1025859495273955378).
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server