Skip to content

Instantly share code, notes, and snippets.

@choxi
Created February 15, 2012 04:48
Show Gist options
  • Save choxi/1833294 to your computer and use it in GitHub Desktop.
Save choxi/1833294 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
configure do
require 'redis'
require 'uri'
REDISTOGO_URL = ENV["REDISTOGO_URL"]
uri = URI.parse(REDISTOGO_URL)
REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
end
get '/' do
# Enter Your Code Here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment