Skip to content

Instantly share code, notes, and snippets.

@sletix
Created January 18, 2010 17:55
Show Gist options
  • Save sletix/280228 to your computer and use it in GitHub Desktop.
Save sletix/280228 to your computer and use it in GitHub Desktop.
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