Permalink
Browse files
Using DATABASE_URL to access shared database
- Loading branch information...
Showing
with
2 additions
and
1 deletion.
-
+1
−0
config.ru
-
+1
−1
db/db_config.rb
|
|
@@ -1,3 +1,4 @@ |
|
|
+require "rubygems"
|
|
|
require "bundler/setup"
|
|
|
|
|
|
path = File.expand_path("../",__FILE__)
|
|
|
|
|
@@ -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