Database URL showing credentials for different ENV
mckay
PROOP

3 months ago

Hello. When referencing a database URL using the internal database name from one environment, it still seems like it's pointing to the dev environment, for example from the prod environment. I know that because when I click to unmask what the credentials are, it's showing the dev credentials not the appropriate production credentials, which is the environment that it's currently being viewed in.

Could someone take a look?

Example - Look at the database URL value in this service

Solved

21 Replies

3 months ago

If you select a service, and then select a different environment, you don't automatically select the new environment's version of the service

Is this the case for you?


mckay
PROOP

3 months ago

I know what youre saying, this is different though


mckay
PROOP

3 months ago

I have three environments: dev, test, and prod. All three share the same application names and database names and use Railway internal networking. When I resolve the variable for the database URL from the application in production, it's showing me the database URL credentials for the dev environment.


3 months ago

^



mckay
PROOP

3 months ago

here brody, I can't find it in the list of 92 services in the dropdown above


mckay
PROOP

3 months ago

You'll see what I mean in the DATABASE_URL value


3 months ago

Fair enough. For future reference, if you provide a project ID in your root message, the applicable service is brought to the top of the list.


3 months ago

Looks like the correct service in the correct environment is being referenced to me.


mckay
PROOP

3 months ago

thank you!


mckay
PROOP

3 months ago

Will do!


3 months ago

I didn't do anything, though.


mckay
PROOP

3 months ago

Heres a pic



mckay
PROOP

3 months ago

Example service


mckay
PROOP

3 months ago

image.png

Attachments


mckay
PROOP

3 months ago

hiding the rest of the url of course but see the dev in the name?


3 months ago

Thats just what you have the private domain named.


mckay
PROOP

3 months ago

my bad


mckay
PROOP

3 months ago

i understand


3 months ago

No worries.


Status changed to Solved brody 3 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...