vereto-api/config/database.yml
2019-02-14 16:29:41 +01:00

31 lines
753 B
YAML

# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: mysql2
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
host: localhost
username: root
password: <%= ENV.fetch("LOCAL_DB_PASS") %>
socket: /var/run/mysqld/mysqld.sock
development:
<<: *default
database: vereto-api-dev
# 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:
<<: *default
database: vereto-api-test
production:
<<: *default
database: vereto-api-prod
password: <%= ENV['TEMP_SITE_DATABASE_PASSWORD'] %>