Permalink
Browse files

Correctly restart app.

  • Loading branch information...
1 parent ccfa677 commit 7c5a6c636412890c2de8d0a59bfc4cc237241603 Gabe Berke-Williams committed Nov 8, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/kumade/heroku.rb
View
@@ -21,7 +21,10 @@ def migrate_database
end
def restart_app
- heroku("restart") unless Kumade.configuration.pretending?
+ unless Kumade.configuration.pretending?
+ command_line = CommandLine.new("bundle exec heroku restart --remote #{Kumade.configuration.environment}")
+ command_line.run_or_error("Failed to restart #{Kumade.configuration.environment}")
+ end
Kumade.configuration.outputter.success("Restarted #{Kumade.configuration.environment}")
end

0 comments on commit 7c5a6c6

Please sign in to comment.