Read more

Bundle capistrano

Tobias Kraze
May 25, 2012Software engineer at makandra GmbH

Capistrano recently had some API changes that can results in deploys not working when running with old deploy.rb files.

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

So let's bundle it. Put capistrano into your Gemfile, like this:

# Gemfile

group :deploy do
  gem 'capistrano'
  gem 'capistrano_colors'
end

It's possible you need to do a bundle update net-ssh to get things running.

Now double check that all your custom hooks are actually still called. One candidate might be an after deploy:symlink hook that has been renamed into after deploy:create_symlink.

I also suggest to put a safeguard into your deploy.rb that dies when not called with bundle exec:

# deploy.rb

abort "You must run this using 'bundle exec ...'" unless ENV['BUNDLE_BIN_PATH'] || ENV['BUNDLE_GEMFILE']
Posted by Tobias Kraze to makandra dev (2012-05-25 14:06)