From e4ac88edf6785e4d8527f5bccb7618a23563b8de Mon Sep 17 00:00:00 2001 From: Sam <100821827+01101sam@users.noreply.github.com> Date: Wed, 2 Aug 2023 12:10:24 +0800 Subject: [PATCH] Initialize database in slave instance --- bootstrap/init.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap/init.go b/bootstrap/init.go index e5f28000..a663732a 100644 --- a/bootstrap/init.go +++ b/bootstrap/init.go @@ -55,6 +55,12 @@ func Init(path string, statics fs.FS) { cache.InitSlaveOverwrites() }, }, + { + "slave", + func() { + model.Init() + }, + }, { "master", func() {