Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
after "deploy:update_code", "bundler:bundle"
namespace :bundler do
task :bundle do
run "mkdir -p #{%w(cache doc gems specifications).map { |x| "#{shared_path}/bundler_gems/#{x}" }.join(' ')} #{release_path}/vendor/bundler_gems; rm -R #{release_path}/vendor/bundler_gems/*; ln -s #{shared_path}/bundler_gems/* #{release_path}/vendor/bundler_gems/; cd #{release_path}; gem bundle"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment