Skip to content

Instantly share code, notes, and snippets.

@abacha
Created February 19, 2013 19:51
Show Gist options
  • Select an option

  • Save abacha/4989246 to your computer and use it in GitHub Desktop.

Select an option

Save abacha/4989246 to your computer and use it in GitHub Desktop.
desc "Deploys the current version to the server."
task :deploy => :environment do
deploy do
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
invoke :'bundle:install'
invoke :'rails:db_migrate'
invoke :'rails:assets_precompile'
invoke :'deploy:cleanup'
to :launch do
queue "touch #{deploy_to}/tmp/restart.txt"
queue "cd #{deploy_to}/current ; mkdir -p tmp/pids;"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment