Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
@rhulse

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

@mateomurphy
Owner

thanks, just updated it

@bouchard

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

@mateomurphy
Owner

Updated for rc2

@rhulse

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.