8937: Merge branch 'master' into 8937-arvput-cached-tokens
[arvados.git] / apps / workbench / config / load_config.rb
index e2185a896963c23f9d2cd2c2036c885e196ae62f..441a437e21c4a566b6f8d95d92ef8a80ab1c11b6 100644 (file)
@@ -54,6 +54,17 @@ The following configuration settings must be specified in
 config/application.yml:
 * #{nils.join "\n* "}
 
+EOS
+  end
+  # Refuse to start if keep-web isn't configured
+  if not (config.keep_web_url or config.keep_web_download_url)
+    raise <<EOS
+Refusing to start in #{::Rails.env.to_s} mode with missing configuration.
+
+Keep-web service must be configured in config/application.yml:
+* keep_web_url
+* keep_web_download_url
+
 EOS
   end
 end