Memcached/rube/rails/heroku newb. Apologies in advance.
The docs here: http://docs.heroku.com/memcache give this for the
memcached config:
# Session cache
ActionController::Base.session = {
:namespace => 'sessions',
:expire_after => 20.minutes.to_i,
:memcache_server => ['server-1:11211', 'server-2:11211'],
:key => ...,
:secret => ...
}
require 'action_controller/session/dalli_store'
ActionController::Base.session_store = :dalli_store
First question: is 'server-1' our app url? (
Second question: is there a way to get the name of the current app?
We run a few versions of our app (staging, production, and, obviously
locally on our own machines) and I obviously don't want them all going
to our production memcache instance. What's the orthodox way to
parameterized the server url, and then is there an orthodox way to
derive that from the environment?
Thanks,
Carson
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.