warns sysadmin to rebake all the posts

when changing the hostname
This commit is contained in:
Régis Hanol 2013-08-01 22:24:55 +02:00
parent 236356bfe2
commit 1e2f151860
3 changed files with 37 additions and 27 deletions

View File

@ -6,7 +6,9 @@ development:
pool: 5 pool: 5
timeout: 5000 timeout: 5000
host_names: host_names:
# /!\ Make sure you *also* restart sidekiq if you change this setting /!\ ### 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" - "localhost"
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
@ -30,7 +32,9 @@ production:
pool: 5 pool: 5
timeout: 5000 timeout: 5000
host_names: host_names:
# /!\ Make sure you *also* restart sidekiq if you change this setting /!\ ### 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`
- production.localhost # Update this to be the domain of your production site - production.localhost # Update this to be the domain of your production site
profile: profile:

View File

@ -8,7 +8,9 @@ production:
timeout: 5000 timeout: 5000
# db_id: 0 # database ID if hosting multiple sites # db_id: 0 # database ID if hosting multiple sites
host_names: host_names:
# /!\ Make sure you *also* restart sidekiq if you change this setting /!\ ### 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`
- production.localhost # Update this to be the domain of your production site - production.localhost # Update this to be the domain of your production site
test: test:

View File

@ -1,26 +1,30 @@
mlp: mlp:
adapter: postgresql adapter: postgresql
database: discourse_mlp database: discourse_mlp
username: discourse_mlp username: discourse_mlp
password: applejack password: applejack
host: dbhost host: dbhost
pool: 5 pool: 5
timeout: 5000 timeout: 5000
db_id: 1 # ensure db_id is unique for each site db_id: 1 # ensure db_id is unique for each site
host_names: ### If you change this setting you will need to
- discourse.equestria.com ### - restart sidekiq if you change this setting
- discourse.equestria.internal ### - rebake all to posts using: `RAILS_ENV=production bundle exec rake posts:rebake`
host_names:
- discourse.equestria.com
- discourse.equestria.internal
drwho: drwho:
adapter: postgresql adapter: postgresql
database: discourse_who database: discourse_who
username: discourse_who username: discourse_who
password: "Up the time stream without a TARDIS" password: "Up the time stream without a TARDIS"
host: dbhost host: dbhost
pool: 5 pool: 5
timeout: 5000 timeout: 5000
db_id: # ensure db_id is unique for each site db_id: # ensure db_id is unique for each site
host_names: ### If you change this setting you will need to
- discuss.tardis.gallifrey ### - restart sidekiq if you change this setting
### - rebake all to posts using: `RAILS_ENV=production bundle exec rake posts:rebake`
host_names:
- discuss.tardis.gallifrey