Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

Merge branch 'ai_0.3_dashboard' into test

aichy1268e9cd070452b
diff --cc cmd/answer/main.go
index 37daf478,e9308442..a3ff6262
--- a/cmd/answer/main.go
+++ b/cmd/answer/main.go
@@@ -2,8 -2,10 +2,9 @@@ package mai
import (
"os"
- "path/filepath"
"github.com/answerdev/answer/internal/base/conf"
+ "github.com/answerdev/answer/internal/base/constant"
"github.com/answerdev/answer/internal/cli"
"github.com/gin-gonic/gin"
"github.com/segmentfault/pacman"
@@@ -38,8 -41,7 +39,7 @@@ func main()
func runApp() {
log.SetLogger(zap.NewLogger(
log.ParseLevel(logLevel), zap.WithName("answer"), zap.WithPath(logPath), zap.WithCallerFullPath()))
-
- c, err := readConfig()
+ c, err := conf.ReadConfig(cli.GetConfigFilePath())
if err != nil {
panic(err)
}