mirror of
https://github.com/openSUSE/osem.git
synced 2026-02-02 02:01:34 -05:00
33 lines
819 B
YAML
33 lines
819 B
YAML
<%
|
|
encoding = 'unicode'
|
|
if ENV.fetch('OSEM_DB_ADAPTER', nil) == 'mysql2'
|
|
encoding = 'utf8'
|
|
end
|
|
%>
|
|
|
|
|
|
default: &default
|
|
adapter: <%= ENV.fetch('OSEM_DB_ADAPTER', 'postgresql') %>
|
|
encoding: <%= encoding %>
|
|
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') %>
|
|
pool: 5
|
|
timeout: 5000
|
|
|
|
development:
|
|
<<: *default
|
|
database: osem_development
|
|
|
|
# Warning: The database defined as "test" will be erased and
|
|
# re-generated when you run "rake".
|
|
# Do not set this db to the same as development or production.
|
|
test:
|
|
<<: *default
|
|
database: osem_test
|
|
|
|
production:
|
|
<<: *default
|