Skip to content
Railway CLI : railway variables -s is showing URLs from other services
obstkompost
OP

10 months ago

When I use railway variables -s “ServiceName”

to display the variables for the selected service, I also see the URL of other services in the same environment displayed as a variable in the form

“RAILWAY_SERVICE_OtherService_URL”.

To me, this looks like a bug, or am I missing something?

Solved

4 Replies

10 months ago

I'm unable to reproduce that locally, make sure that you're on the latest Railway CLI version.


obstkompost
OP

10 months ago

I used the latest version, namely 4.23.2.

The URLs that are displayed are domains that I added under “Public Networking” in the other services.

Perhaps this information will help you reproduce the issue.


10 months ago

That's not a bug, it is old behavior from before we had reference variables, it is there for backwards compatibility sake.


obstkompost
OP

10 months ago

All right, thanks for clarifying that! In my opinion, the thread can now be closed.


Status changed to Solved brody • 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...