Created
January 18, 2010 17:55
-
-
Save sletix/280228 to your computer and use it in GitHub Desktop.
This file contains 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 'Deploy application' | |
task :deploy do | |
system("ssh %user%@%server_host% 'cd %path/to/app% && git pull && sudo rake gems:install RAILS_ENV=production && rake db:migrate RAILS_ENV=production && touch tmp/restart.txt'") | |
puts "Deploy completed" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment