From 1e2f15186052f11ae3a8ab4e47a6d135499ededa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 1 Aug 2013 22:24:55 +0200 Subject: [PATCH] warns sysadmin to rebake all the posts when changing the hostname --- config/database.yml.development-sample | 8 +++- config/database.yml.production-sample | 4 +- config/multisite.yml.production-sample | 52 ++++++++++++++------------ 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/config/database.yml.development-sample b/config/database.yml.development-sample index 3db73c252e8..74106f2638b 100644 --- a/config/database.yml.development-sample +++ b/config/database.yml.development-sample @@ -6,7 +6,9 @@ development: pool: 5 timeout: 5000 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" # Warning: The database defined as "test" will be erased and @@ -30,7 +32,9 @@ production: pool: 5 timeout: 5000 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 profile: diff --git a/config/database.yml.production-sample b/config/database.yml.production-sample index 4943d0d07b0..f12389e929c 100644 --- a/config/database.yml.production-sample +++ b/config/database.yml.production-sample @@ -8,7 +8,9 @@ production: timeout: 5000 # db_id: 0 # database ID if hosting multiple sites 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 test: diff --git a/config/multisite.yml.production-sample b/config/multisite.yml.production-sample index ed17af240f2..9c7accece6e 100644 --- a/config/multisite.yml.production-sample +++ b/config/multisite.yml.production-sample @@ -1,26 +1,30 @@ -mlp: - adapter: postgresql - database: discourse_mlp - username: discourse_mlp - password: applejack - host: dbhost - pool: 5 - timeout: 5000 - db_id: 1 # ensure db_id is unique for each site - host_names: - - discourse.equestria.com - - discourse.equestria.internal +mlp: + adapter: postgresql + database: discourse_mlp + username: discourse_mlp + password: applejack + host: dbhost + pool: 5 + timeout: 5000 + db_id: 1 # ensure db_id is unique for each site + ### 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` + host_names: + - discourse.equestria.com + - discourse.equestria.internal drwho: - adapter: postgresql - database: discourse_who - username: discourse_who - password: "Up the time stream without a TARDIS" - host: dbhost - pool: 5 - timeout: 5000 - db_id: # ensure db_id is unique for each site - host_names: - - discuss.tardis.gallifrey - - + adapter: postgresql + database: discourse_who + username: discourse_who + password: "Up the time stream without a TARDIS" + host: dbhost + pool: 5 + timeout: 5000 + db_id: # ensure db_id is unique for each site + ### 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` + host_names: + - discuss.tardis.gallifrey