Skip to content

Instantly share code, notes, and snippets.

@lchanmann
Last active May 29, 2018 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lchanmann/449a7217227622e2ebddc7b1642d9d9a to your computer and use it in GitHub Desktop.
Save lchanmann/449a7217227622e2ebddc7b1642d9d9a to your computer and use it in GitHub Desktop.
blogging
# config/initializers/redis.rb
url = URI.parse(ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" })
REDIS = Redis.new(url: url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment