"Unlink" services across environments
alex-wirebee
PROOP

a year 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 RAILWAYSERVICEID 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.

13 Replies

alex-wirebee
PROOP

a year ago

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


alex-wirebee
PROOP

a year ago

bump


a year 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

a year 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


a year ago

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


alex-wirebee
PROOP

a year 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

a year ago

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


a year ago

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


alex-wirebee
PROOP

a year 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?


a year ago

you would sync that service to your desired environment


alex-wirebee
PROOP

a year ago

ah ok, somehow I never used the Sync option


alex-wirebee
PROOP

a year ago

I'll have to go look at the docs


alex-wirebee
PROOP

a year ago

now it all makes sense, thanks 🙂


Loading...