Created
February 19, 2013 19:51
-
-
Save abacha/4989246 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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