Skip to content

Instantly share code, notes, and snippets.

@sunblaze
Created December 2, 2011 21:14
Show Gist options
  • Save sunblaze/1424867 to your computer and use it in GitHub Desktop.
Save sunblaze/1424867 to your computer and use it in GitHub Desktop.
Double bundle deploy. Nice trick to run two seperate Gemfiles for one project and deploy it with style.
require "bundler/capistrano"
after "deploy:finalize_update", "bundle:jruby_install"
namespace :bundle do
desc "Install bundle environment for jruby"
task :jruby_install do
old_current_release = fetch(:current_release)
set :bundle_dir, File.join(fetch(:shared_path), 'jruby_bundle')
set :current_release, File.join(fetch(:current_release), 'lib/jruby_daemon')
install
set :current_release, old_current_release
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment