Browse Source

Remove mongo config; add postgres config

master
Adrian Short 12 years ago
parent
commit
8f01d8e1d6
2 changed files with 26 additions and 15 deletions
  1. +26
    -0
      config/database.yml
  2. +0
    -15
      config/mongo.yml

+ 26
- 0
config/database.yml View File

@@ -0,0 +1,26 @@
development:
adapter: postgresql
encoding: unicode
database: apollo_development
pool: 5
username: postgres
password:
port: 5433

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: postgresql
encoding: unicode
database: apollo_test
pool: 5
username: postgres
password:
port: 5433

production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000

+ 0
- 15
config/mongo.yml View File

@@ -1,15 +0,0 @@
defaults: &defaults
host: 127.0.0.1
port: 27017

development:
<<: *defaults
database: apollo_development

test:
<<: *defaults
database: apollo_test

# set these environment variables on your prod server
production:
uri: <%= ENV['MONGOLAB_URI'] %>

Loading…
Cancel
Save