Skip to content
Browse files

hi there postgres

  • Loading branch information...
1 parent 8a18780 commit e0c05dbb8bdb94dbf12d08ecdc228d5de280a49f @prefork prefork committed Apr 14, 2012
Showing with 8 additions and 0 deletions.
  1. +1 −0 app.rb
  2. +1 −0 config/.gitignore
  3. +6 −0 config/database.rb.sample
View
1 app.rb
@@ -20,6 +20,7 @@ class HswApi < Sinatra::Application
'committee' => Committee,
'politician' => Politician
}
+ require './config/database'
end
helpers do
View
1 config/.gitignore
@@ -0,0 +1 @@
+database.rb
View
6 config/database.rb.sample
@@ -0,0 +1,6 @@
+set db, {
+ :hostname => "CHANGEME.EXAMPLE.COM",
+ :dbname => "YOUR DATABASE NAME",
+ :username => "SOME USERNAME (READ ONLY)",
+ :password => "SECRET PASSWORD"
+ }

0 comments on commit e0c05db

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