16723: Fix stubPool KillContainer(): return false if not running.
[arvados.git] / apps / workbench / config / application.rb
index c8a722f0bfff06b107a83a198aee5a79755877c1..e88229b85158f200ebc6a7df644f9b147fcfd06f 100644 (file)
@@ -19,21 +19,23 @@ require "rails/test_unit/railtie"
 
 Bundler.require(:default, Rails.env)
 
+if ENV["ARVADOS_RAILS_LOG_TO_STDOUT"]
+  Rails.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
+end
+
 module ArvadosWorkbench
   class Application < Rails::Application
+
+    require_relative "arvados_config.rb"
+
     # Settings in config/environments/* take precedence over those specified here.
     # Application configuration should go into files in config/initializers
     # -- all .rb files in that directory are automatically loaded.
 
     # Custom directories with classes and modules you want to be autoloadable.
-    # config.autoload_paths += %W(#{config.root}/extras)
-
     # Autoload paths shouldn't be used anymore since Rails 5.0
     # See #15258 and https://github.com/rails/rails/issues/13142#issuecomment-74586224
-    config.eager_load_paths += %W(#{config.root}/lib)
-
-    # Load entire application at startup.
-    config.eager_load = true
+    # config.autoload_paths += %W(#{config.root}/extras)
 
     # Only load the plugins named here, in the order given (default is alphabetical).
     # :all can be used as a placeholder for all plugins not explicitly named.
@@ -76,5 +78,3 @@ module ArvadosWorkbench
     config.assets.paths << Rails.root.join('node_modules')
   end
 end
-
-require File.expand_path('../load_config', __FILE__)