#Use Railway variables

20 messages · Page 1 of 1 (latest)

patent yacht
#

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?

#

This doesn't seem to work HAHAHA

manic yacht
patent yacht
#

So the way I did it should work?

manic yacht
patent yacht
#

Hm, when I do railway variables that var shows up as empty though

manic yacht
patent yacht
#

Already did that

manic yacht
patent yacht
#

Yeah, it is like the screenshot in my settings

#

${{ RAILWAY_STATIC_URL }}

manic yacht
#

Alright. Then someone from the core team will investigate from their end.

patent yacht
#

Might just be related to CLI because I am actually able to send requests to my app on that URL

patent yacht
#

Hm, well, it won't work if try to run my code via railway run

manic yacht
hexed shore
#

Is there any update on this? I am also trying to use the railway variables but I have the same problem as this post

brazen cliff
#

same problem here with empty variables

frozen breach
#

same problem with empty variables!

neat swift
#

Are you running railway run yarn dev or railway run npm run dev?

#

Because you need to fetch the variables from Railway when running your app, if you just run yarn dev or npm run dev without railway the variables will not be injected