# Warning: The contents of 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:
  adapter: mysql2
  username: root
  password: root
  database: plots
  encoding: utf8
  host: 127.0.0.1
  pool: 5
  timeout: 5000
  strict: false

# This database will be used by default when running `passenger start`
development:
  adapter: mysql2
  username: 
  password: 
  encoding: utf8
  database: publiclaboratory
  strict: false

production:
  adapter: mysql2
  username: <%= ENV['DB_USER'] || 'plots' %>
  password: <%= ENV['DB_PASS'] || 'plots' %>
  database: <%= ENV['DB_NAME'] || 'plots' %>
  socket: <%= ENV['DB_SOCKET'] || '' %>
  port: <%= ENV['DB_PORT'] || 3306 %>
  host: <%= ENV['DB_HOST'] || 'db' %>
  encoding: utf8mb4
  pool: <%= ENV['RAILS_MAX_THREADS'] || 5 %>
  timeout: 5000
  strict: false
