Make config.time_zone configurable at secrets.yml

This commit is contained in:
Bertocq
2018-02-15 21:48:10 +01:00
parent 6dfa2ea4e9
commit f9909573a3
2 changed files with 4 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ module Consul
# Add lib to the autoload path # Add lib to the autoload path
config.autoload_paths << Rails.root.join('lib') config.autoload_paths << Rails.root.join('lib')
config.time_zone = 'Madrid' config.time_zone = Rails.application.secrets.time_zone
config.active_job.queue_adapter = :delayed_job config.active_job.queue_adapter = :delayed_job
# CONSUL specific custom overrides # CONSUL specific custom overrides

View File

@@ -1,4 +1,5 @@
default: &default default: &default
time_zone: 'Madrid'
secret_key_base: 56792feef405a59b18ea7db57b4777e855103882b926413d4afdfb8c0ea8aa86ea6649da4e729c5f5ae324c0ab9338f789174cf48c544173bc18fdc3b14262e4 secret_key_base: 56792feef405a59b18ea7db57b4777e855103882b926413d4afdfb8c0ea8aa86ea6649da4e729c5f5ae324c0ab9338f789174cf48c544173bc18fdc3b14262e4
maps: &maps maps: &maps
@@ -40,6 +41,7 @@ staging:
<<: *apis <<: *apis
preproduction: preproduction:
time_zone: 'Madrid'
secret_key_base: "" secret_key_base: ""
server_name: "" server_name: ""
rollbar_server_token: "" rollbar_server_token: ""
@@ -57,6 +59,7 @@ preproduction:
<<: *apis <<: *apis
production: production:
time_zone: 'Madrid'
secret_key_base: "" secret_key_base: ""
server_name: "" server_name: ""
rollbar_server_token: "" rollbar_server_token: ""