"Unlink" services across environments
alex-wirebee
PROOP

2 years ago

I believe this might have happened when I cloned the environments, but I have 3 envs: dev, staging, production. Each has a frontend/backend. When I rename the frontend service in dev, the stage frontend service gets renamed. Looking at the RAILWAY_SERVICE_ID env vars for the services, they are the same. They have different settings within each environment. How can I "unlink" the services so I can have different names in different environments.

Closed

13 Replies

alex-wirebee
PROOP

2 years ago

Project id: bffee644-ec55-4122-9e19-fee98c401647


alex-wirebee
PROOP

2 years ago

bump


2 years ago

This is the desired behavior, each service is representative on one another across environments, but the service instance can have different settings


alex-wirebee
PROOP

2 years ago

Correct, different settings, except the name. Also, when moving services around on the canvas, let's say I move the frontend service, it moves it on all the environments, which can mess things up since on production environment I have more services, like replicas, so the canvas gets messed up


2 years ago

Yep service positions are also the same accrors all environments, that would also be the intended behaviour


alex-wirebee
PROOP

2 years ago

The only way I can think of uncoupling them would be to clone the service in that environment and just delete the old one, is that right?


alex-wirebee
PROOP

2 years ago

How do I link services from one environment to another then?


2 years ago

You can't, thats is how it has been designed, can you tell me why you need to?


alex-wirebee
PROOP

2 years ago

I must be missing something, is this behavior in the docs and I missed it? I have backend and frontend across all 3 environments dev, staging, production. If I add another service on dev, let's call it queue service, how can I link that with the same service on staging and production? Or is this behavior only available for backend/frontend named services?


2 years ago

you would sync that service to your desired environment


alex-wirebee
PROOP

2 years ago

ah ok, somehow I never used the Sync option


alex-wirebee
PROOP

2 years ago

I'll have to go look at the docs


alex-wirebee
PROOP

2 years ago

now it all makes sense, thanks 🙂


Welcome!

Sign in to your Railway account to join the conversation.

Loading...