forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.yml.example
35 lines (33 loc) · 930 Bytes
/
database.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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