mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +00:00
Added .eager_load config variable to each environment respectively
This commit is contained in:
parent
2dcc14b0a3
commit
e6c2ebcbc3
4 changed files with 8 additions and 3 deletions
|
@ -31,6 +31,5 @@ Ensl::Application.configure do
|
||||||
# Use a different cache store
|
# Use a different cache store
|
||||||
config.cache_store = :dalli_store
|
config.cache_store = :dalli_store
|
||||||
|
|
||||||
# Enable threaded mode
|
config.eager_load = false
|
||||||
# config.threadsafe!
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -64,4 +64,6 @@ Ensl::Application.configure do
|
||||||
|
|
||||||
# Custom Session Store config to allow gathers.staging.ensl.org
|
# Custom Session Store config to allow gathers.staging.ensl.org
|
||||||
# config.session_store :cookie_store, key: '_ENSL_session_key', expire_after: 30.days.to_i, domain: "gathers.ensl.org"
|
# config.session_store :cookie_store, key: '_ENSL_session_key', expire_after: 30.days.to_i, domain: "gathers.ensl.org"
|
||||||
|
|
||||||
|
config.eager_load = true
|
||||||
end
|
end
|
|
@ -64,4 +64,6 @@ Ensl::Application.configure do
|
||||||
|
|
||||||
# Custom Session Store config to allow gathers.staging.ensl.org
|
# Custom Session Store config to allow gathers.staging.ensl.org
|
||||||
config.session_store :cookie_store, key: "_ENSL_session_key_staging", expire_after: 30.days.to_i, domain: ".staging.ensl.org"
|
config.session_store :cookie_store, key: "_ENSL_session_key_staging", expire_after: 30.days.to_i, domain: ".staging.ensl.org"
|
||||||
|
|
||||||
|
config.eager_load = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,4 +32,6 @@ Ensl::Application.configure do
|
||||||
|
|
||||||
# Print deprecation notices to the stderr
|
# Print deprecation notices to the stderr
|
||||||
config.active_support.deprecation = :stderr
|
config.active_support.deprecation = :stderr
|
||||||
|
|
||||||
|
config.eager_load = true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue