Skip to content

Instantly share code, notes, and snippets.

@cyx
Created April 17, 2010 08:20
Show Gist options
  • Save cyx/369401 to your computer and use it in GitHub Desktop.
Save cyx/369401 to your computer and use it in GitHub Desktop.
desc "redis ENV", "Start the redis server in the supplied environment"
def redis(env = ENV['RACK_ENV'] || 'development')
verify_config env
exec "redis-server config/redis/#{env}.conf"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment