13996: Migrate majority of defaults to config.defaults.yml
[arvados.git] / services / api / app / controllers / static_controller.rb
index b421f54596f9f5274eef4f943fb4ab09a2f96321..53ab6ccb929b94469eb40e29fb8253c9868d4b19 100644 (file)
@@ -12,8 +12,8 @@ class StaticController < ApplicationController
   def home
     respond_to do |f|
       f.html do
-        if Rails.configuration.workbench_address
-          redirect_to Rails.configuration.workbench_address
+        if Rails.configuration.Services["Workbench1"]["ExternalURL"]
+          redirect_to Rails.configuration.Services["Workbench1"]["ExternalURL"]
         else
           render_not_found "Oops, this is an API endpoint. You probably want to point your browser to an Arvados Workbench site instead."
         end