X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/19d0b4c509ec720f9ffc1ea13f758c5825308834..b0af0440838407be80c6208b15f969bc2942008e:/services/api/app/controllers/static_controller.rb diff --git a/services/api/app/controllers/static_controller.rb b/services/api/app/controllers/static_controller.rb index ba69b8464f..fda088095e 100644 --- a/services/api/app/controllers/static_controller.rb +++ b/services/api/app/controllers/static_controller.rb @@ -6,7 +6,13 @@ class StaticController < ApplicationController skip_before_filter :require_auth_scope_all, :only => [ :home, :login_failure ] def home - redirect_to Rails.configuration.workbench_address + if Rails.configuration.respond_to? :workbench_address + redirect_to Rails.configuration.workbench_address + else + render json: { + error: ('This is the API server; you probably want to be at the workbench for this installation. Unfortunately, config.workbench_address is not set so I can not redirect you there automatically') + } + end end end