forked from tip4commit/tip4commit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.yml.dev
More file actions
45 lines (40 loc) · 1.23 KB
/
database.yml.dev
File metadata and controls
45 lines (40 loc) · 1.23 KB
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
36
37
38
39
40
41
42
43
44
45
development:
adapter: sqlite3
pool: 5
timeout: 5000
<% if IS_MY_FORK %>
database: db/my_development.sqlite3
<% elsif IS_TIP4COMMIT_FORK %>
database: db/tip4commit_development.sqlite3
<% elsif IS_PEER4COMMIT_FORK %>
database: db/peer4commit_development.sqlite3
<% elsif IS_PRIME4COMMIT_FORK %>
database: db/prime4commit_development.sqlite3
<% else %>
<% puts "ERROR: config/database.yml - no development db specified for branch: '#{branch_name}'"
+
" - you must add it to one of the *_BRANCHES lists in #{BRANCHES_LISTS_FILENAME}" %>
<% end %>
test:
adapter: sqlite3
pool: 5
timeout: 5000
<% if IS_MY_FORK %>
database: db/my_test.sqlite3
<% elsif IS_TIP4COMMIT_FORK %>
database: db/tip4commit_test.sqlite3
<% elsif IS_PEER4COMMIT_FORK %>
database: db/peer4commit_test.sqlite3
<% elsif IS_PRIME4COMMIT_FORK %>
database: db/prime4commit_test.sqlite3
<% else %>
<% puts "ERROR: config/database.yml - no test db specified for branch: '#{branch_name}'" +
" - you must add it to one of the *_BRANCHES lists in #{BRANCHES_LISTS_FILENAME}" %>
<% end %>
production:
adapter: mysql2
encoding: utf8
database: tip4commit
username: root
password:
socket: /var/run/mysqld/mysqld.sock