build-scripts/database.yml
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
sqlite3: &sqlite3
adapter: sqlite3
pool: 5
timeout: 5000
database: db/redmine.sqlite3
mysql: &mysql
adapter: mysql2
encoding: utf8
database: <%= ENV['DB_NAME'] || 'redmine' %>
username: <%= ENV['DB_USERNAME'] %>
password: <%= ENV['DB_PASSWORD'] %>
host: <%= ENV['DB_HOST'] %>
port: <%= ENV['DB_PORT'] || 3306 %>
postgres: &postgres
adapter: postgresql
encoding: utf8
database: <%= ENV['DB_NAME'] || 'redmine' %>
username: <%= ENV['DB_USERNAME'] %>
password: <%= ENV['DB_PASSWORD'] %>
host: <%= ENV['DB_HOST'] %>
port: <%= ENV['DB_PORT'] || 5432 %>
development:
<<: *<%= ENV['DB'] || 'sqlite3' %>
# 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:
<<: *<%= ENV['DB'] || 'sqlite3' %>
production:
<<: *<%= ENV['DB'] || 'sqlite3' %>