osem-fcy/config/database.yml

35 lines
821 B
YAML
Raw Normal View History

<%
encoding = 'unicode'
if ENV['OSEM_DB_ADAPTER'] == 'mysql2'
encoding = 'utf8'
end
%>
default: &default
adapter: <%= ENV['OSEM_DB_ADAPTER'] || 'postgresql' %>
encoding: <%= encoding %>
host: <%= ENV['OSEM_DB_HOST'] || 'database' %>
port: <%= ENV['OSEM_DB_PORT'] || '5432' %>
2021-02-11 16:17:13 -08:00
username: <%= ENV['OSEM_DB_USER'] || 'postgres' %>
password: <%= ENV['OSEM_DB_PASSWORD'] || 'mysecretpassword' %>
database: <%= ENV['OSEM_DB_NAME'] || 'postgres' %>
2013-01-07 09:04:09 +01:00
pool: 5
2020-08-02 14:34:17 -07:00
timeout: 50000
2013-01-07 09:04:09 +01:00
development:
<<: *default
2020-07-10 18:29:46 -07:00
host: localhost
database: osem_development
2013-01-07 09:04:09 +01:00
# Warning: The database defined as "test" will be erased and
# re-generated when you run "rake".
2013-01-07 09:04:09 +01:00
# Do not set this db to the same as development or production.
test:
<<: *default
2020-07-10 18:29:46 -07:00
host: localhost
database: osem_test
2013-01-07 09:04:09 +01:00
production:
<<: *default