X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/964ab3dd90ff1508efc0c77378cde2b3a4da1029..aac7d8c7cc80b80d97821c88f803517cd2988bad:/services/api/config/environment.rb diff --git a/services/api/config/environment.rb b/services/api/config/environment.rb index 4ccec85307..cd706940a3 100644 --- a/services/api/config/environment.rb +++ b/services/api/config/environment.rb @@ -1,12 +1,9 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + # Load the rails application -require File.expand_path('../application', __FILE__) -require 'josh_id' +require_relative 'application' # Initialize the rails application -Server::Application.initialize! -begin - Rails.cache.clear -rescue Errno::ENOENT => e - # Cache directory does not exist? Then cache is clear, proceed. - Rails.logger.warn "In Rails.cache.clear, ignoring #{e.inspect}" -end +Rails.application.initialize!