about summary refs log tree commit diff
path: root/config/environments
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-26 13:42:10 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-26 13:42:10 +0100
commit85b00d19b840bae98322c2372e8e0e3ebd66f2e0 (patch)
tree7eee05cd92cdcc0b97a07d2a94f8ee661f6eaca7 /config/environments
parentda4b675aca2c68e976d7920d3fc5b7e2881d1d86 (diff)
Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb6
-rw-r--r--config/environments/production.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 76e52312d..564630813 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -40,4 +40,10 @@ Rails.application.configure do
   # config.action_view.raise_on_missing_translations = true
 
   config.action_mailer.delivery_method = :letter_opener
+
+  config.after_initialize do
+    Bullet.enable = true
+    Bullet.bullet_logger = true
+    Bullet.rails_logger = true
+  end
 end
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 1f08fad5a..968960eb6 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -55,7 +55,7 @@ Rails.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 = :memory_store, size: 128.megabytes
 
   # Enable serving of images, stylesheets, and JavaScripts from an asset server.
   # config.action_controller.asset_host = 'http://assets.example.com'