Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

find auth details in db path

  • Loading branch information...
commit ba15478a3ed1dfd5cc68ae9ab4f58669d66130a9 1 parent b1bf87c
Joe Nelson authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 db/init.rb
6 db/init.rb
@@ -6,8 +6,10 @@ def self.connect env=nil
6 6 if ENV['DATABASE_URL']
7 7 uri = URI.parse ENV['DATABASE_URL']
8 8 opts = {
9   - 'host' => uri.host,
10   - 'dbname' => uri.path.split('/')[1]
  9 + 'host' => uri.host,
  10 + 'user' => uri.user,
  11 + 'password' => uri.password,
  12 + 'dbname' => uri.path.split('/')[1]
11 13 }
12 14 else
13 15 opts = DB::Config[env || settings.environment.to_s]

0 comments on commit ba15478

Please sign in to comment.
Something went wrong with that request. Please try again.