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

Updated . Posted . Visible to the public.

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

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
Henning Koch
Last edit
Dominik Schöler
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2012-04-12 20:44)