I found out yesterday that for Dalli versions =0.10.1, you don't need
to specify ENV['MEMCACHE_SERVERS'].
http://github.com/mperham/dalli/wiki/Heroku-Configuration
On Oct 24, 5:32 pm, Joost Schuur jsch...@jschuur.com wrote:
That did the trick for me. Thanks so much!
Heroku ought to have
I just figured this out today. I wrote it up here (http://
www.arailsdemo.com/posts/17). Basically, you have to configure Dalli
to use the Heroku memcache server. Simply change your config to:
# production.rb
config.action_controller.perform_caching = true
config.cache_store = :dalli_store,
I've been experimenting with memcached and read good things about the
dalli gem, so I thought I'd try it out on Heroku. I can't seem to get
it to work and m not getting back any obvious errors either.
My production.rb defines:
config.action_controller.perform_caching = true
config.cache_store =
You can't use groups w/ heroku + bundler. You can do something like
if RUBY_PLATFORM =~ /darwin/ ... but then you'll run into problems
if you have your Gemfile.lock checked in. To get around this, we just
don't check in the Gemfile.lock.
To make sure it's working locally, I'd start memcached with
You can use groups with heroku + bundler. For example, I do:
heroku config:add BUNDLE_WITHOUT=development test
source :rubygems
gem 'rails', '3.0.0'
group :development, :test do
gem 'rspec-rails', '2.0.0'
# etc...
end
Then, Heroku doesn't install any of the RSpec gems.
Anyway, it's a bad