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
This doesn't seem to work
No need to change your code. You can assign
RAILWAY_*
variables like that.So the way I did it should work?
Yep.
Hm, when I do railway variables that var shows up as empty though
Generate a domain from "Settings" tab on the service.
Already did that
That's odd. Are you sure you didn't make any typo? It's
RAILWAY_STATIC_URL
. That is: ${{ RAILWAY_STATIC_URL }}
.Yeah, it is like the screenshot in my settings
${{ RAILWAY_STATIC_URL }}
Alright. Then someone from the core team will investigate from their end.
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
railway run
is a bogus thing. Mine didn't work either yesterday (https://discord.com/channels/713503345364697088/1025836714046013480/1025859495273955378).Unknown User•2y ago
Message Not Public
Sign In & Join Server To View