Sep 10, 2014
I don’t know the origin of the term “dev/prod parity,” but I think it’s fair to say that the 12 Factor App philosophy helped popularize it. I think it’s also fair to say that tools like Vagrant, Docker, and myriad configuration management frameworks sprung out of a desire to achieve such parity, and their development has had a snowball effect of simultaneously spreading the idea that dev-prod parity is useful and lowering the bar to attaining some level of parity.
Sadly, I have yet to see in practice an app that combines a tool like Vagrant with a tool like Chef to effortlessly run a near-production setup locally for the purpose of development. And most writing on the topic reminds of this tired “draw an owl” meme:
Here’s how I would like to break down the steps to dev-prod parity, at least for Ruby apps running on Chef-configured clusters:
vagrant ssh -c
commandsMy hope is that this minimizes or eliminates the so-called “tool gap” between development and production. If development “stands up,” we can be reasonably sure production will stand up. Development will use the same process supervisor, the same init scripts, the same configuration mechanism as production, so we can even get a mini-prod running locally by configuring everything except the code delivery strategy to be production-esque.
But after a day of fighting with Vagrant and VMWare, I mostly just want to quietly introduce foreman for local development and move on with my life.
This post is a flapjack, which means I originally wrote it for the internal FullStack blog and have republished it here. Any mysterious, unexplained context was probably obvious to the team at the time.