2013-02-12 10:18:59 -06:00
|
|
|
development:
|
2015-10-18 22:02:22 -05:00
|
|
|
prepared_statements: false
|
2013-02-12 10:18:59 -06:00
|
|
|
adapter: postgresql
|
2017-09-04 11:14:34 -05:00
|
|
|
database: <%= ENV['DISCOURSE_DEV_DB'] || 'discourse_development' %>
|
2013-03-01 11:45:25 -06:00
|
|
|
min_messages: warning
|
2017-09-26 22:55:06 -05:00
|
|
|
pool: 5
|
2017-10-27 08:59:30 -05:00
|
|
|
checkout_timeout: <%= ENV['CHECKOUT_TIMEOUT'] || 5 %>
|
2013-02-12 10:18:59 -06:00
|
|
|
host_names:
|
2013-12-06 10:01:22 -06:00
|
|
|
### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings.
|
2013-08-01 15:24:55 -05: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`
|
2021-11-02 22:26:44 -05:00
|
|
|
- "<%= ENV['DISCOURSE_HOSTNAME'] || 'localhost' %>"
|
2021-04-14 10:34:28 -05:00
|
|
|
variables: <%= ENV.filter { |k,v| k.start_with? 'DISCOURSE_DB_VARIABLES_' }
|
|
|
|
.transform_keys { |k| k.slice(('DISCOURSE_DB_VARIABLES_'.length)..).downcase }
|
|
|
|
.to_json %>
|
2013-02-12 10:18:59 -06:00
|
|
|
|
|
|
|
# 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.
|
2019-12-30 21:07:44 -06:00
|
|
|
|
|
|
|
<%
|
2022-08-04 16:15:06 -05:00
|
|
|
test_db = ENV["RAILS_DB"]
|
2019-12-30 21:07:44 -06:00
|
|
|
if !test_db.present?
|
|
|
|
test_db = "discourse_test"
|
|
|
|
|
|
|
|
if num = ENV["TEST_ENV_NUMBER"]
|
|
|
|
num = num.presence || "1"
|
|
|
|
test_db += "_#{num}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
%>
|
|
|
|
|
2013-02-12 10:18:59 -06:00
|
|
|
test:
|
2016-03-29 13:41:13 -05:00
|
|
|
prepared_statements: false
|
2013-02-12 10:18:59 -06:00
|
|
|
adapter: postgresql
|
2019-12-30 21:07:44 -06:00
|
|
|
database: <%= test_db %>
|
2013-03-01 11:45:25 -06:00
|
|
|
min_messages: warning
|
2024-02-06 21:10:17 -06:00
|
|
|
pool: 1
|
|
|
|
reaping_frequency: 0
|
2024-02-07 20:35:55 -06:00
|
|
|
checkout_timeout: <% ENV["CHECKOUT_TIMEOUT"] || 5 %>
|
2013-02-12 10:18:59 -06:00
|
|
|
host_names:
|
|
|
|
- test.localhost
|
|
|
|
|
2014-08-13 23:46:57 -05:00
|
|
|
# profile db is used for benchmarking using the script/bench.rb script
|
2013-03-10 19:21:56 -05:00
|
|
|
profile:
|
2015-10-18 22:02:22 -05:00
|
|
|
prepared_statements: false
|
2013-03-10 19:21:56 -05:00
|
|
|
adapter: postgresql
|
2013-08-04 16:22:00 -05:00
|
|
|
database: discourse_profile
|
2013-03-10 19:21:56 -05:00
|
|
|
min_messages: warning
|
|
|
|
pool: 5
|
|
|
|
host_names:
|
|
|
|
- "localhost"
|
2014-01-13 23:59:55 -06:00
|
|
|
# You may be surprised production is not here, it is sourced from application.rb using a monkey patch
|
|
|
|
# This is done for 2 reasons
|
|
|
|
#
|
|
|
|
# 1. we need to support blank settings correctly and rendering nothing in yaml/erb is a PITA
|
|
|
|
# 2. why go from object -> yaml -> object, pointless
|