mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-06 02:07:49 +08:00
Init storage engine (#13707)
### What problem does this PR solve? 1. Init Minio / S3 / OSS 2. Fix minio / s3 / oss config ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@ -10,6 +10,7 @@ import (
|
||||
"ragflow/internal/common"
|
||||
"ragflow/internal/server"
|
||||
"ragflow/internal/server/local"
|
||||
"ragflow/internal/storage"
|
||||
"ragflow/internal/utility"
|
||||
"strings"
|
||||
"syscall"
|
||||
@ -118,6 +119,10 @@ func main() {
|
||||
}
|
||||
defer cache.Close()
|
||||
|
||||
if err := storage.InitStorageFactory(); err != nil {
|
||||
logger.Fatal("Failed to initialize storage factory", zap.Error(err))
|
||||
}
|
||||
|
||||
// Initialize server variables (runtime variables that can change during operation)
|
||||
// This must be done after Cache is initialized
|
||||
if err := server.InitVariables(cache.Get()); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user