Created
December 2, 2011 21:14
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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