osem-fcy/config/database.yml

33 lines
819 B
YAML
Raw Normal View History

<%
encoding = 'unicode'
2022-05-06 14:27:15 +02:00
if ENV.fetch('OSEM_DB_ADAPTER', nil) == 'mysql2'
encoding = 'utf8'
end
%>
default: &default
2022-05-06 14:27:15 +02:00
adapter: <%= ENV.fetch('OSEM_DB_ADAPTER', 'postgresql') %>
encoding: <%= encoding %>
2022-05-06 14:27:15 +02:00
host: <%= ENV.fetch('OSEM_DB_HOST', 'database') %>
port: <%= ENV.fetch('OSEM_DB_PORT', '5432') %>
username: <%= ENV.fetch('OSEM_DB_USER', 'postgres') %>
password: <%= ENV.fetch('OSEM_DB_PASSWORD', 'mysecretpassword') %>
database: <%= ENV.fetch('OSEM_DB_NAME', 'postgres') %>
2013-01-07 09:04:09 +01:00
pool: 5
timeout: 5000
development:
<<: *default
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
database: osem_test
2013-01-07 09:04:09 +01:00
production:
<<: *default