fr3fou
fr3fou4w ago

Dev/Prod envs using 2 instances (Community Edition)

Would I encounter any issues if I have 2 GitHub branches: - dev - master and use wmill sync push in a GitHub Action [with 2 different domains / tokens]?
7 Replies
rubenf
rubenf4w ago
I don't think so
fr3fou
fr3fouOP4w ago
one thing I considered is that the resources must match up and if I add multiple in production (e.g. if I have a schedule for a flow that operates on multiple resources of a given resource type), this will cause a slight drift unless there's a way to NOT pull resources
rubenf
rubenf4w ago
that's what git sync is for (which is EE)
fr3fou
fr3fouOP4w ago
what's the difference between pulling with the --stateful flag and without it
rubenf
rubenf4w ago
--stateful is super obsolete, we will probably remove it in not too long you should use git sync (which is EE) you can use CLI push and pull but it's non stateful and it will overwrite everything it can only work without drift, and drift can only work if windmill updates your git repo on any changes, which is what git sync is for so you can do some automation without git sync but the complexity is not worth imho
fr3fou
fr3fouOP4w ago
i see Update: I think I can utilize variables / secrets (which I won't pull using sync) for the dynamic values inside each resource, e.g. db host / pass / etc
rubenf
rubenf4w ago
Yes that's recommended