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