2013-02-13 00:18:59 +08:00
|
|
|
development:
|
|
|
|
adapter: postgresql
|
|
|
|
database: discourse_development
|
2013-03-02 01:45:25 +08:00
|
|
|
min_messages: warning
|
2013-02-13 00:18:59 +08:00
|
|
|
pool: 5
|
|
|
|
timeout: 5000
|
|
|
|
host_names:
|
2013-12-07 00:01:22 +08:00
|
|
|
### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings.
|
2013-08-02 04:24:55 +08:00
|
|
|
### If you change this setting you will need to
|
|
|
|
### - restart sidekiq if you change this setting
|
|
|
|
### - rebake all to posts using: `RAILS_ENV=production bundle exec rake posts:rebake`
|
2013-02-13 00:18:59 +08:00
|
|
|
- "localhost"
|
|
|
|
|
|
|
|
# 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:
|
|
|
|
adapter: postgresql
|
|
|
|
database: discourse_test
|
2013-03-02 01:45:25 +08:00
|
|
|
min_messages: warning
|
2013-02-13 00:18:59 +08:00
|
|
|
pool: 5
|
|
|
|
timeout: 5000
|
|
|
|
host_names:
|
|
|
|
- test.localhost
|
|
|
|
|
2013-12-18 13:46:37 +08:00
|
|
|
# profile db is used for benchamarking using the script/bench.rb script
|
2013-03-11 08:21:56 +08:00
|
|
|
profile:
|
|
|
|
adapter: postgresql
|
2013-08-05 05:22:00 +08:00
|
|
|
database: discourse_profile
|
2013-03-11 08:21:56 +08:00
|
|
|
min_messages: warning
|
|
|
|
pool: 5
|
|
|
|
timeout: 5000
|
|
|
|
host_names:
|
|
|
|
- "localhost"
|
2013-12-18 13:46:37 +08:00
|
|
|
|
|
|
|
production:
|
2013-12-20 12:12:23 +08:00
|
|
|
pool: <%= GlobalSetting.db_pool %>
|
|
|
|
timeout: <%= GlobalSetting.db_timeout %>
|
2013-12-18 13:46:37 +08:00
|
|
|
adapter: postgresql
|
2013-12-20 12:12:23 +08:00
|
|
|
socket: <%= GlobalSetting.db_socket %>
|
|
|
|
host: <%= GlobalSetting.db_host %>
|
|
|
|
port: <%= GlobalSetting.db_port %>
|
|
|
|
database: <%= GlobalSetting.db_name %>
|
|
|
|
username: <%= GlobalSetting.db_username %>
|
|
|
|
password: <%= GlobalSetting.db_password %>
|
2013-12-18 13:46:37 +08:00
|
|
|
host_names:
|
2013-12-20 12:12:23 +08:00
|
|
|
- <%= GlobalSetting.hostname %>
|