also switch dev/test db's to postgres

This commit is contained in:
Kiara Grouwstra 2023-01-27 13:18:12 +01:00
parent 525ddabe9e
commit 55506a27a4
2 changed files with 16 additions and 18 deletions

View File

@ -1,4 +1,8 @@
RAILS_LOG_TO_STDOUT: 'any value will do, it just cares that this env var is present'
SMTP_USERNAME: ""
SMTP_PASSWORD: ""
INGANG_ADMIN_PASSWORD: ""
BIGBLUEBUTTON_SECRET: ""
DATABASE_PASSWORD_PRODUCTION: ""
DATABASE_PASSWORD_TEST: ""
DATABASE_PASSWORD_DEV: ""

View File

@ -1,35 +1,29 @@
# SQLite. Versions 3.8.0 and up are supported.
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
# upsert does not work with sqlite
adapter: postgresql
encoding: unicode
host: db.internal.bij1.net
port: 5432
development:
<<: *default
adapter: sqlite3
database: db/development.sqlite3
database: ingang_dev
username: ingang_dev
password: <%= ENV.fetch("DATABASE_PASSWORD_DEV") { } %>
# 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:
<<: *default
adapter: sqlite3
database: db/test.sqlite3
database: ingang_test
username: ingang_test
password: <%= ENV.fetch("DATABASE_PASSWORD_TEST") { } %>
production:
<<: *default
# adapter: sqlite3
# database: db/production.sqlite3
adapter: postgresql
encoding: unicode
database: ingang
username: ingang
password: <%= ENV.fetch("DATABASE_PASSWORD") { } %>
host: db.internal.bij1.net
port: 5432
password: <%= ENV.fetch("DATABASE_PASSWORD_PRODUCTION") { } %>