Permalink
Browse files

enable memcache and asset host

  • Loading branch information...
1 parent 355608a commit 04346b84626da76a5165e20ff450b1d24ec593e8 @flyerhzm committed Oct 23, 2011
Showing with 9 additions and 3 deletions.
  1. +3 −1 Gemfile
  2. +4 −0 Gemfile.lock
  3. +2 −2 config/environments/production.rb
View
@@ -6,4 +6,6 @@ gem "haml"
gem "acts-as-taggable-on"
gem "will_paginate"
gem "whenever"
-gem 'exception_notification', :require => 'exception_notifier'
+gem "exception_notification", :require => "exception_notifier"
+gem "memcache-client"
+gem "memcached"
View
@@ -44,6 +44,8 @@ GEM
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
+ memcache-client (1.8.5)
+ memcached (1.3.5)
mime-types (1.16)
mysql2 (0.2.13)
polyglot (0.3.2)
@@ -86,6 +88,8 @@ DEPENDENCIES
acts-as-taggable-on
exception_notification
haml
+ memcache-client
+ memcached
mysql2 (~> 0.2.13)
rails (~> 3.0.10)
whenever
@@ -25,14 +25,14 @@
# config.logger = SyslogLogger.new
# Use a different cache store in production
- # config.cache_store = :mem_cache_store
+ config.cache_store = ActiveSupport::Cache::MemCacheStore.new(Memcached::Rails.new("localhost:11211", :namespace => "rubyslide", :logger => Rails.logger))
# Disable Rails's static asset server
# In production, Apache or nginx will already do this
config.serve_static_assets = false
# Enable serving of images, stylesheets, and javascripts from an asset server
- # config.action_controller.asset_host = "http://assets.example.com"
+ config.action_controller.asset_host = "http://assets.rubyslide.com"
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false

0 comments on commit 04346b8

Please sign in to comment.