Make config.time_zone configurable at secrets.yml
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user