Skip to content

Instantly share code, notes, and snippets.

@lukerandall
Created May 26, 2010 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukerandall/414238 to your computer and use it in GitHub Desktop.
Save lukerandall/414238 to your computer and use it in GitHub Desktop.
namespace :bundler do
desc "Updates gems using bundler"
task :update_gems do
run "cd #{release_path} && bundle install vendor --disable-shared-gems --relock --without test"
end
end
namespace :db do
desc "Symlink database.yml config file"
task :symlink_config do
run "ln -nfs #{deploy_to}/#{shared_dir}/config/database.yml #{release_path}/config/database.yml"
end
end
after "deploy:update_code", "bundler:update_gems"
after "deploy:update_code", "db:symlink_config"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment