Read more

Shell script to deploy changes to production and not shoot yourself in the foot

Henning Koch
April 12, 2012Software engineer at makandra GmbH

Geordi Show archive.org snapshot , our collection of command line tools, has been extended by another command deploy-to-production. This script encapsulates the following workflow:

  • Pull the production branch.
  • Show which commits from the master would make it to production with this deploy.
  • Ask if you want to proceed.
  • If yes, merge the master into the production branch, push and deploy with bundle exec cap production deploy:migrations
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

The script will ask you for the names of your master branch, production branch and production Capistrano stage.

Get the new script by saying

sudo gem install geordi

You can now say from any project directory

geordi deploy-to-production
Posted by Henning Koch to makandra dev (2012-04-12 22:44)