Commit 45b7c05c66d37a82ba1b7660df1da91c61f8fc9f
1 parent
a2c55a94
Exists in
master
and in
1 other branch
adding a rake heroku:deploy task to git push, migrate, notify hoptoad
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
lib/tasks/heroku.rake
| ... | ... | @@ -61,6 +61,13 @@ namespace :heroku do |
| 61 | 61 | end |
| 62 | 62 | end |
| 63 | 63 | |
| 64 | + desc "Deploy to heroku" | |
| 65 | + task :deploy => :dependencies do | |
| 66 | + `git push heroku` | |
| 67 | + `heroku rake db:migrate` | |
| 68 | + `heroku rake hoptoad:deploy TO=#{RAILS_ENV}` | |
| 69 | + end | |
| 70 | + | |
| 64 | 71 | task :dependencies do |
| 65 | 72 | `heroku` |
| 66 | 73 | unless $?.success? | ... | ... |