Commit e653fc1
Changed files (3)
config/environments/production.rb
@@ -28,10 +28,10 @@ Confection::Application.configure do
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- # config.force_ssl = true
+ config.force_ssl = true
# See everything in the log (default is :info)
- # config.log_level = :debug
+ config.log_level = :warn
# Prepend all log lines with the following tags
# config.log_tags = [ :subdomain, :uuid ]
@@ -40,7 +40,7 @@ Confection::Application.configure do
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
# Use a different cache store in production
- # config.cache_store = :mem_cache_store
+ config.cache_store = :dalli_store, { expires_in: 20.minutes }
# Enable serving of images, stylesheets, and JavaScripts from an asset server
config.action_controller.asset_host = ENV['ASSET_HOST']
Gemfile
@@ -12,6 +12,7 @@ gem 'bootstrap-sass'
gem 'devise'
gem 'sqlite3', :groups => [:development, :test]
gem 'dotenv-rails', :groups => [:development, :test]
+gem 'dalli'
group :development do
gem 'rack-mini-profiler'
@@ -38,4 +39,5 @@ group :production do
gem 'newrelic_rpm'
gem 'dalli'
gem 'ffaker'
+ gem 'memcachier'
end
Gemfile.lock
@@ -98,6 +98,7 @@ GEM
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
+ memcachier (0.0.2)
mime-types (1.23)
multi_json (1.7.6)
net-scp (1.1.1)
@@ -201,6 +202,7 @@ DEPENDENCIES
jquery-rails
kaminari
lol_dba
+ memcachier
newrelic_rpm
pg
rack-mini-profiler