mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
FEATURE: failsafe, in multisite if a site is bad still boot up
This commit is contained in:
parent
63404b16bb
commit
a7cb93a5c3
|
@ -9,6 +9,9 @@ reload_settings = lambda {
|
|||
SiteSetting.refresh!
|
||||
rescue ActiveRecord::StatementInvalid
|
||||
# This will happen when migrating a new database
|
||||
rescue => e
|
||||
STDERR.puts "URGENT: #{e} Failed to initialize site #{RailsMultisite::ConnectionManagement.current_db}"
|
||||
# the show must go on, don't stop startup if multisite fails
|
||||
end
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user