RAILS_GROUP is set and includes 'assets'.
refs #12122
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege@veritasgenetics.com>
cfg.send "#{k}=", v
end
end
- if !nils.empty?
+ if !nils.empty? and not ::Rails.groups.include?('assets')
raise <<EOS
+#{::Rails.groups.include?('assets')}
Refusing to start in #{::Rails.env.to_s} mode with missing configuration.
The following configuration settings must be specified in
EOS
end
# Refuse to start if keep-web isn't configured
- if not (config.keep_web_url or config.keep_web_download_url)
+ if not (config.keep_web_url or config.keep_web_download_url) and not ::Rails.groups.include?('assets')
raise <<EOS
Refusing to start in #{::Rails.env.to_s} mode with missing configuration.