controlling memcached with Phusion’s daemon_controller September 6, 2008
Posted by John Dewey in Code, Deployment, Memcached, Plugins & Gems, Rails, Ruby.trackback
I am working on an application that utilizes memcached, and want to develop against a locally running instance. Previously, we pointed our development environment to a sandboxed memcached cluster, which can be slow depending on time of day, location, and network. I typically mock external resources, however, I like a living memcache.
This post describes a way to start memcached automatically with script/server, and is a continuation of the daemon_controller memcached configuration post.
As the Phusion guys pointed out. Pulling code — and not worrying about configuration is AWESOME! This is especially true in the development environment.

Adding this to development.rb will automatically start and stop memcached via ’script/console’ and ’script/server’. SAs maintain the daemons in the other environments via SMF, nor am I interested in maintaining those environments (did that … done that).
Comments»
No comments yet — be the first.