Kaynağa Gözat

Remove mongo config; add postgres config

master
Adrian Short 12 yıl önce
ebeveyn
işleme
8f01d8e1d6
2 değiştirilmiş dosya ile 26 ekleme ve 15 silme
  1. +26
    -0
      config/database.yml
  2. +0
    -15
      config/mongo.yml

+ 26
- 0
config/database.yml Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet