0
0
Fork 0

Add tests for recently added API end points

This commit is contained in:
Eugen Rochko 2016-11-03 18:53:37 +01:00
parent 3731230c6d
commit 829d189f44
3 changed files with 47 additions and 1 deletions

View file

@ -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'
}