database.yml.example 1.12 KB
Newer Older
1
mysql: &mysql
2
  adapter: mysql2
3
  host: "localhost"
MrZYX's avatar
MrZYX committed
4 5
  port: 3306
  username: "root"
6
  password: ""
7
#  socket: /tmp/mysql.sock
8
  encoding: utf8mb4
9
  collation: utf8mb4_bin
MrZYX's avatar
MrZYX committed
10

11 12 13 14 15 16 17 18
postgres: &postgres
  adapter: postgresql
  host: localhost
  port: 5432
  username: postgres
  password:
  encoding: unicode

19 20
# Comment the the mysql line and uncomment the postgres line
# if you want to use postgres
Jonne Haß's avatar
Jonne Haß committed
21
common: &common
22 23 24
  # Choose one of the following
  <<: *mysql
  #<<: *postgres
Jonne Haß's avatar
Jonne Haß committed
25 26 27

  # Should match environment.sidekiq.concurrency
  #pool: 25
28

Jonne Haß's avatar
Jonne Haß committed
29 30 31
##################################################
#### CONFIGURE ABOVE #############################
##################################################
MrZYX's avatar
MrZYX committed
32

33
# Normally you don't need to touch anything here
Jonne Haß's avatar
Jonne Haß committed
34 35 36 37

postgres_travis: &postgres_travis
  adapter: postgresql
  username: postgres
Jonne Haß's avatar
Jonne Haß committed
38
combined: &combined
MrZYX's avatar
MrZYX committed
39
  <<: *common
Jonne Haß's avatar
Jonne Haß committed
40 41
development:
  <<: *combined
42
  database: diaspora_development
43
production:
Jonne Haß's avatar
Jonne Haß committed
44
  <<: *combined
Raphael's avatar
Raphael committed
45
  database: diaspora_production
MrZYX's avatar
MrZYX committed
46
test:
Jonne Haß's avatar
Jonne Haß committed
47
  <<: *combined
48
  database: "diaspora_test"
49
integration1:
Jonne Haß's avatar
Jonne Haß committed
50
  <<: *combined
51 52
  database: diaspora_integration1
integration2:
Jonne Haß's avatar
Jonne Haß committed
53
  <<: *combined
54
  database: diaspora_integration2