Permalink
Browse files

Using DATABASE_URL to access shared database

  • Loading branch information...
kartikrustagi committed Apr 5, 2012
1 parent 08ada68 commit ecf65c54f1ddff42ce75c6e4693998565bcc8273
Showing with 2 additions and 1 deletion.
  1. +1 −0 config.ru
  2. +1 −1 db/db_config.rb
View
@@ -1,3 +1,4 @@
+require "rubygems"
require "bundler/setup"
path = File.expand_path("../",__FILE__)
View
@@ -1,3 +1,3 @@
require 'sequel'
-DB = Sequel.connect("mysql://kartik:rustagi@localhost/Words")
+DB = Sequel.connect(ENV['DATABASE_URL'])

0 comments on commit ecf65c5

Please sign in to comment.