Navigation Menu

Skip to content

Commit

Permalink
One-click deploy to Heroku.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois committed Jun 26, 2009
1 parent 809c8ec commit f0a674d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/tasks/heroku.rake
Expand Up @@ -38,4 +38,11 @@ namespace :heroku do
exit $?.exitstatus
end
end

desc "Deploys the application to Heroku. Creates a new Heroku application if needed."
task :deploy => %w(heroku:gems) do
remotes = `git remote -v`.split("\n")
sh "heroku create" if remotes.grep(/heroku/i).empty?
sh "git push heroku master"
end
end

0 comments on commit f0a674d

Please sign in to comment.