Skip to content

Commit bf28f3c

Browse files
committed
added additional environment variables
1 parent c3fd8e3 commit bf28f3c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

config/application.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,15 @@ class Application < Rails::Application
316316
# Link to external guidance about selecting one of the preferred licenses. A default
317317
# URL will be displayed if none is provided here. See app/views/research_outputs/licenses/_form
318318
config.x.madmp.preferred_licenses_guidance_url = 'https://creativecommons.org/about/cclicenses/'
319+
320+
321+
# don adding environment variables from ./config/environments/* files
322+
config.cache_classes = ENV["CACHE_CLASSES"]
323+
config.eager_load = ENV["EAGER_LOAD"]
324+
config.consider_all_requests_local = ENV["CONSIDER_ALL_REQUESTS_LOCAL"]
325+
config.action_controller.perform_caching = ENV["PERFORM_CACHING"]
326+
config.cache_store = ENV["CACHE_STORE"].to_sym
327+
319328
end
320329

321330
end

0 commit comments

Comments
 (0)