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:
Sam
2013-12-18 16:46:37 +11:00
parent 39a360f6e3
commit ffffee3ae1
5 changed files with 26 additions and 73 deletions

51
config/database.yml Normal file
View 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