Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prepare for Heroku deploy.

  • Loading branch information...
commit 2683e496c5fbbfd3e9b6ca7c0bb1f4a982deb5e9 1 parent 5685757
@gabebw authored
Showing with 13 additions and 1 deletion.
  1. +1 −0  Gemfile
  2. +7 −0 Gemfile.lock
  3. +1 −0  Procfile
  4. +4 −1 lib/ohm_setup.rb
View
1  Gemfile
@@ -5,6 +5,7 @@ gem 'redis', '~> 2.2.2'
gem 'rake', '~> 0.9.2'
gem 'ohm', '~> 1.0.0.rc1'
gem 'ohm-contrib', '~> 1.0.0.rc2'
+gem 'thin'
group :test do
gem 'rack-test'
View
7 Gemfile.lock
@@ -13,7 +13,9 @@ GEM
xpath (~> 0.1.4)
childprocess (0.3.1)
ffi (~> 1.0.6)
+ daemons (1.1.8)
diff-lcs (1.1.3)
+ eventmachine (0.12.10)
factory_girl (3.1.0)
activesupport (>= 3.0.0)
ffi (1.0.11)
@@ -57,6 +59,10 @@ GEM
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
+ thin (1.3.1)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
tilt (1.3.3)
turnip (0.3.0)
gherkin (>= 2.5)
@@ -77,4 +83,5 @@ DEPENDENCIES
redis (~> 2.2.2)
rspec (~> 2.9.0)
sinatra (~> 1.3.2)
+ thin
turnip (~> 0.3.0)
View
1  Procfile
@@ -0,0 +1 @@
+web: bundle exec thin start -p $PORT
View
5 lib/ohm_setup.rb
@@ -1,4 +1,7 @@
require 'ohm'
require 'ohm/contrib'
-# Ohm.connect
+if ENV["REDISTOGO_URL"]
+ uri = URI.parse(ENV["REDISTOGO_URL"])
+ Ohm.connect(:host => uri.host, :port => uri.port, :password => uri.password)
+end
Please sign in to comment.
Something went wrong with that request. Please try again.