diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-03 18:53:37 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-03 18:53:37 +0100 |
commit | 829d189f44f1c8bdfc3aa60aa4ae2f477c72edad (patch) | |
tree | f3c728c3568cefd214d34635d34c5bb0a11e1d2f /config/environments | |
parent | 3731230c6d25f248afa8a17b62b3db70fdfe1e03 (diff) |
Add tests for recently added API end points
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/development.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 3a2ab2a0ea5..829edcf0410 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -16,7 +16,13 @@ Rails.application.configure do if Rails.root.join('tmp/caching-dev.txt').exist? config.action_controller.perform_caching = true - config.cache_store = :memory_store + config.cache_store = :redis_store, { + host: ENV['REDIS_HOST'] || 'localhost', + port: ENV['REDIS_PORT'] || 6379, + db: 0, + namespace: 'cache' + } + config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=172800' } |