Skip to content

Commit

Permalink
yeah that was a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Dec 10, 2012
1 parent 672bd80 commit a8fa700
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/bundler_api/web.rb
Expand Up @@ -15,11 +15,7 @@ class BundlerApi::Web < Sinatra::Base
end

def initialize(conn = nil)
db_url = ENV["FOLLOWER_DATABASE_URL"]
db_url ||= begin
follower = `heroku config -s -a bundler-api-staging | grep FOLLOWER`
follower.split("=").last
end
db_url = ENV["FOLLOWER_DATABASE_URL"]
max_conns = ENV['MAX_THREADS'] || 2
@conn = conn || Sequel.connect(db_url, :max_connections => max_conns)
super()
Expand Down

0 comments on commit a8fa700

Please sign in to comment.