Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Correctly restart app.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Nov 8, 2011
1 parent ccfa677 commit 7c5a6c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/kumade/heroku.rb
Expand Up @@ -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

Expand Down

0 comments on commit 7c5a6c6

Please sign in to comment.