1 # This file must be loaded _after_ secret_token.rb if secret_token is
2 # defined there instead of in config/application.yml.
4 $application_config = {}
6 %w(application.default application).each do |cfgfile|
7 path = "#{::Rails.root.to_s}/config/#{cfgfile}.yml"
9 yaml = ERB.new(IO.read path).result(binding)
10 confs = YAML.load(yaml)
11 $application_config.merge!(confs['common'] || {})
12 $application_config.merge!(confs[::Rails.env.to_s] || {})
16 ArvadosWorkbench::Application.configure do
18 $application_config.each do |k, v|
19 # "foo.bar: baz" --> { config.foo.bar = baz }
26 if cfg.respond_to?(k.to_sym) and !cfg.send(k).nil?
27 # Config must have been set already in environments/*.rb.
29 # After config files have been migrated, this mechanism should
30 # be deprecated, then removed.
32 # Config variables are not allowed to be nil. Make a "naughty"
33 # list, and present it below.
41 Refusing to start in #{::Rails.env.to_s} mode with missing configuration.
43 The following configuration settings must be specified in
44 config/application.yml: