From 7c5a6c636412890c2de8d0a59bfc4cc237241603 Mon Sep 17 00:00:00 2001 From: Gabe Berke-Williams Date: Tue, 8 Nov 2011 11:43:03 -0500 Subject: [PATCH] Correctly restart app. --- lib/kumade/heroku.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/kumade/heroku.rb b/lib/kumade/heroku.rb index a99f368..e3ef6c6 100644 --- a/lib/kumade/heroku.rb +++ b/lib/kumade/heroku.rb @@ -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