2 years ago
Hi,
I've noticed something weird unless there's some misunderstanding from my side. I have two environments (dev and QA) with a Postgres services created via the template in dev, and then synched to QA.
If I try to change the service title in QA, then also the service running in dev is changed to the new value, and the way around. Same happens with the disk title.
Is it supposed to work this way?
13 Replies
2 years ago
Yes that is how it should work, since these services are meant to represent each other across your environments.
2 years ago
ok, thank you for explaining.
I would have another question, please. Is there a way to explicitly exclude a service from showing up in the sync changes? For example, I have a service that does a cron database backup on prod, but I'm not interested in having it in the lower envs.
2 years ago
Hmm that's a good question, I don't think there is a straight forward way to exclude a service from the environment sync.
2 years ago
There is not a way to completely exclude services from Sync, but very interesting request! I suggest adding a Feedback thread to let others chime in and/or upvote it!
2 years ago
@melissa: sure, I'll do that.
@brody: indeed, that's what I'm currently doing at every sync.
2 years ago
For example, I'm running the official postgress backup image in production only, as I'm not interested in backing up lower envs for now. Every time I sync prod from qa, I have to manually remove the option to destroy the backup service.
Something similar happens with env vars too, for example, we have some secrets which are different for each env, so I think there should be an option to mark them as specific to an env and to be skipped if modified. They could be included in the sync if deleted in a env, as that would indicate that it's intentionally to remove them in the synched env too.
2 years ago
I'll throw my use case in the ring too, I have a production environment with a web app that also contains Umami and the accompanying database, but the dev environment I have has no need for Umami or its database, so I just end up not syncing anything since since the config is small enough anyway.
2 years ago
Wouldn't this be a good case to have like, a production and then a staging environment?
2 years ago
Wouldn't that be the same case? I personally don't can't see myself needing umami in any environment but production.
2 years ago
So you could create an environment that is staging, without umami, and then have your PRs fork from that
And setup a trigger on master so that when you merge that in, it'll deploy
Status changed to Solved Railway • over 1 year ago
2 years ago
I also have another user case, we are using Weaviate vector database, however there's no reason for us to pay for the managed service in staging and develop environment, therefore we self host for those. So we have this service running in the lower envs only.
