feat: support read site version from release tag

This commit is contained in:
engigu
2024-01-29 22:00:13 +08:00
parent d538a3965e
commit e7b4917b3d
6 changed files with 55 additions and 95 deletions
+5
View File
@@ -7,6 +7,7 @@ import (
"github.com/sirupsen/logrus"
"message-nest/migrate"
"message-nest/models"
"message-nest/pkg/constant"
"message-nest/pkg/logging"
"message-nest/pkg/setting"
"message-nest/routers"
@@ -18,9 +19,13 @@ import (
var (
//go:embed web/dist/*
f embed.FS
//go:embed .release*
rf embed.FS
)
func init() {
constant.InitReleaseInfo(rf)
setting.Setup()
logging.Setup()
migrate.Setup()