R
Railway•4w ago
Alexandru

"Unlink" services across environments

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.
10 Replies
Percy
Percy•4w ago
Project ID: bffee644-ec55-4122-9e19-fee98c401647
Alexandru
AlexandruOP•4w ago
Project id: bffee644-ec55-4122-9e19-fee98c401647 bump
Brody
Brody•4w ago
This is the desired behavior, each service is representative on one another across environments, but the service instance can have different settings
Alexandru
AlexandruOP•4w 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
Brody
Brody•4w ago
Yep service positions are also the same accrors all environments, that would also be the intended behaviour
Alexandru
AlexandruOP•4w 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? How do I link services from one environment to another then?
Brody
Brody•4w ago
You can't, thats is how it has been designed, can you tell me why you need to?
Alexandru
AlexandruOP•4w 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?
Brody
Brody•4w ago
you would sync that service to your desired environment
Alexandru
AlexandruOP•4w ago
ah ok, somehow I never used the Sync option I'll have to go look at the docs now it all makes sense, thanks 🙂
Want results from more Discord servers?
Add your server