Skip to content

Instantly share code, notes, and snippets.

@uniglam
Created January 4, 2010 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save uniglam/268497 to your computer and use it in GitHub Desktop.
Save uniglam/268497 to your computer and use it in GitHub Desktop.
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