Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern question regarding environments #1

Open
davideagle opened this issue Jul 25, 2017 · 1 comment
Open

Pattern question regarding environments #1

davideagle opened this issue Jul 25, 2017 · 1 comment

Comments

@davideagle
Copy link

Hi and thank you for publishing this pattern. I'm wondering how you handle and prevent environment drifts in this pattern. From what I gather (please correct if wrong) you'd have separate directory structure in the ESM (environment service module) for each environment (dev/test/stage/prod) would that not create a lot of code duplications and create a possibility for environment drifts as you changes some things in one environment and but not the other?

I'd like to hear your thought on this since in my opinion it should preferably be the same code that is used to create each env to ensure as close similarity between them as possible.

@jonbrouse
Copy link
Member

Hey sorry for the delay. Using trunk based development, only the "dev" environment would be on the master branch. When you're ready to deploy to QA, Stage, etc. you would either use a tag or a commit hash. This allows you to keep your service modules in step with the code base it is deploying. Does that answer your question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants