Procházet zdrojové kódy

Remove mongo config; add postgres config

master
Adrian Short před 11 roky
rodič
revize
8f01d8e1d6
2 změnil soubory, kde provedl 26 přidání a 15 odebrání
  1. +26
    -0
      config/database.yml
  2. +0
    -15
      config/mongo.yml

+ 26
- 0
config/database.yml Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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'] %>

Načítá se…
Zrušit
Uložit