Skip to content

Instantly share code, notes, and snippets.

@tomafro
Forked from rlivsey/deploy.rb
Created July 22, 2010 09:44
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 tomafro/485786 to your computer and use it in GitHub Desktop.
Save tomafro/485786 to your computer and use it in GitHub Desktop.
namespace :vlad do
desc "installs Bundler if it is not already installed"
remote_task :install_bundler do
run "sh -c 'if [ -z `which bundle` ]; then echo Installing Bundler; sudo gem install bundler --pre; fi'"
end
desc "run 'bundle install' to install Bundler's packaged gems for the current deploy and cache the config and lock files for the next releases"
remote_task :bundle_install do
run "cd #{latest_release} && bundle install #{shared_path}/bundle --without development test"
end
end
task :quick_deploy => [ "vlad:update",
"vlad:bundle_install",
"vlad:start_app" ]
task :deploy => [ "vlad:update",
"vlad:setup_bundler",
"vlad:install_bundler",
"vlad:bundle_install",
"vlad:start_app",
"vlad:cleanup" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment