From f0ed9582db2f0bdd13c8d84421db227c1470a7ff Mon Sep 17 00:00:00 2001 From: Nick Carboni Date: Mon, 11 Feb 2019 09:46:45 -0500 Subject: [PATCH] Don't print the release codename in production mode This is breaking production scripts that parse the output of `rails runner`. The codename is nice, but because there is not a reliable way to determine if we're using the server or runner, gating this on the env seems like the best option Alternative to ManageIQ/manageiq-appliance_console#80 Fixes ManageIQ/manageiq-appliance_console#79 --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 13b22f5b164..24910c33456 100644 --- a/config/application.rb +++ b/config/application.rb @@ -161,7 +161,7 @@ class Application < Rails::Application config.after_initialize do Vmdb::Initializer.init ActiveRecord::Base.connection_pool.release_connection - puts "** #{Vmdb::Appliance.BANNER}" + puts "** #{Vmdb::Appliance.BANNER}" unless Rails.env.production? end console do