2013-02-12 11:18:59 -05:00
|
|
|
development:
|
|
|
|
adapter: postgresql
|
|
|
|
database: discourse_development
|
2013-03-01 12:45:25 -05:00
|
|
|
min_messages: warning
|
2013-02-12 11:18:59 -05:00
|
|
|
host: localhost
|
|
|
|
pool: 5
|
|
|
|
timeout: 5000
|
|
|
|
host_names:
|
2013-12-06 11:01:22 -05:00
|
|
|
### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings.
|
2013-08-01 16:24:55 -04: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-12 11:18:59 -05: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-01 12:45:25 -05:00
|
|
|
min_messages: warning
|
2013-02-12 11:18:59 -05:00
|
|
|
host: localhost
|
|
|
|
pool: 5
|
|
|
|
timeout: 5000
|
|
|
|
host_names:
|
|
|
|
- test.localhost
|
|
|
|
|
2013-12-18 00:46:37 -05:00
|
|
|
# profile db is used for benchamarking using the script/bench.rb script
|
2013-03-10 20:21:56 -04:00
|
|
|
profile:
|
|
|
|
adapter: postgresql
|
2013-08-04 17:22:00 -04:00
|
|
|
database: discourse_profile
|
2013-03-10 20:21:56 -04:00
|
|
|
min_messages: warning
|
|
|
|
host: localhost
|
|
|
|
pool: 5
|
|
|
|
timeout: 5000
|
|
|
|
host_names:
|
|
|
|
- "localhost"
|
2013-12-18 00:46:37 -05:00
|
|
|
|
|
|
|
production:
|
|
|
|
pool: <%= ENV['POSTGRES_CONNECTION_POOL'] || 5 %>
|
|
|
|
timeout: 5000
|
|
|
|
adapter: postgresql
|
|
|
|
uri: <%= uri = URI.parse(ENV['POSTGRES_URL']) %>
|
|
|
|
socket: <%= ENV['POSTGRES_SOCKET'] %>
|
|
|
|
host: <%= uri.host %>
|
|
|
|
port: <%= uri.port || 5432 %>
|
2013-12-18 00:54:47 -05:00
|
|
|
database: <%= ENV['POSTGRES_DB'] || "discourse" %>
|
2013-12-18 00:46:37 -05:00
|
|
|
username: <%= uri.user %>
|
|
|
|
password: <%= uri.password %>
|
|
|
|
host_names:
|
2013-12-18 01:17:12 -05:00
|
|
|
- <%= ENV["DISCOURSE_HOSTNAME"] || raise("env var for DISCOURSE_HOSTNAME must be set") %> # Update this to be the domain of your production site
|