From f8572db6833237ea1d07ad0a9cc27cfdff12e60a Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 4 Jul 2014 12:07:14 +1000 Subject: [PATCH] Install and configure dalli for staging and production environments --- Gemfile | 1 + Gemfile.lock | 2 ++ config/environments/production.rb | 2 +- config/environments/staging.rb | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 346d8c9d51..af6b81b3a8 100644 --- a/Gemfile +++ b/Gemfile @@ -32,6 +32,7 @@ gem "active_model_serializers" gem 'oj' gem 'deface', :github => 'spree/deface', :ref => '1110a13' gem 'paperclip' +gem 'dalli' gem 'geocoder' gem 'gmaps4rails' gem 'spinjs-rails' diff --git a/Gemfile.lock b/Gemfile.lock index 39afc2ac50..329fc1a308 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -206,6 +206,7 @@ GEM compass (>= 0.12.2, < 0.14) crack (0.4.1) safe_yaml (~> 0.9.0) + dalli (2.7.2) database_cleaner (0.7.1) db2fog (0.8.0) activerecord (~> 3.0) @@ -507,6 +508,7 @@ DEPENDENCIES comfortable_mexican_sofa compass-rails custom_error_message! + dalli database_cleaner (= 0.7.1) db2fog debugger-linecache diff --git a/config/environments/production.rb b/config/environments/production.rb index ee6fa16e8a..a55540883d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -37,7 +37,7 @@ Openfoodnetwork::Application.configure do # config.logger = SyslogLogger.new # Use a different cache store in production - # config.cache_store = :mem_cache_store + config.cache_store = :dalli_store # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" diff --git a/config/environments/staging.rb b/config/environments/staging.rb index ee6fa16e8a..a55540883d 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -37,7 +37,7 @@ Openfoodnetwork::Application.configure do # config.logger = SyslogLogger.new # Use a different cache store in production - # config.cache_store = :mem_cache_store + config.cache_store = :dalli_store # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com"