mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
IMPORTANT - removed all sample files
This is very likely to cause merge conflict, it is for the greater good Discuss at: http://meta.discourse.org/t/enough-with-the-sample-files/10351 From now on we use ENV to customise if needed
This commit is contained in:
51
config/database.yml
Normal file
51
config/database.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
development:
|
||||
adapter: postgresql
|
||||
database: discourse_development
|
||||
min_messages: warning
|
||||
host: localhost
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
host_names:
|
||||
### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings.
|
||||
### 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`
|
||||
- "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
|
||||
min_messages: warning
|
||||
host: localhost
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
host_names:
|
||||
- test.localhost
|
||||
|
||||
# profile db is used for benchamarking using the script/bench.rb script
|
||||
profile:
|
||||
adapter: postgresql
|
||||
database: discourse_profile
|
||||
min_messages: warning
|
||||
host: localhost
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
host_names:
|
||||
- "localhost"
|
||||
|
||||
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 %>
|
||||
database: <%= ENV['POSTGRES_DB'] %>
|
||||
username: <%= uri.user %>
|
||||
password: <%= uri.password %>
|
||||
host_names:
|
||||
- <%= ENV["DISCOURSE_HOSTNAME"] || raise "env var for DISCOURSE_HOSTNAME must be set" %> # Update this to be the domain of your production site
|
||||
Reference in New Issue
Block a user