Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View bundler_rc1_capistrano.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
namespace :bundler do
task :create_symlink, :roles => :app do
shared_dir = File.join(shared_path, 'bundled_gems')
release_dir = File.join(current_release, 'vendor', 'bundle')
run("mkdir -p #{shared_dir} && ln -s #{shared_dir} #{release_dir}")
end
task :bundle_new_release, :roles => :app do
bundler.create_symlink
run "cd #{release_path} && bundle install --deployment"
end
end
 
after "deploy:update_code" do
bundler.bundle_new_release
end

You need to change --disable-shared-gems to --production if you have bunder.rc2

Owner

thanks, just updated it

Now, apparently to --deployment rather than --production.

Owner

Updated for rc2

rc 4 now has this built in.

Just add "require 'bundler/capistrano'" in your Capistrano deploy file (deploy.rb).

http://github.com/carlhuda/bundler/blob/master/lib/bundler/capistrano.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.