mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat(env_group): migrate site_category to env_group
This commit is contained in:
parent
de1860718e
commit
a379211e3c
66 changed files with 4837 additions and 4251 deletions
6
main.go
6
main.go
|
@ -10,6 +10,7 @@ import (
|
|||
"github.com/0xJacky/Nginx-UI/internal/cert"
|
||||
"github.com/0xJacky/Nginx-UI/internal/cmd"
|
||||
"github.com/0xJacky/Nginx-UI/internal/kernel"
|
||||
"github.com/0xJacky/Nginx-UI/internal/migrate"
|
||||
"github.com/0xJacky/Nginx-UI/model"
|
||||
"github.com/0xJacky/Nginx-UI/router"
|
||||
"github.com/0xJacky/Nginx-UI/settings"
|
||||
|
@ -28,8 +29,13 @@ func Program(confPath string) func(state overseer.State) {
|
|||
return func(state overseer.State) {
|
||||
defer logger.Sync()
|
||||
defer logger.Info("Server exited")
|
||||
|
||||
cosy.RegisterMigrationsBeforeAutoMigrate(migrate.BeforeAutoMigrate)
|
||||
|
||||
cosy.RegisterModels(model.GenerateAllModel()...)
|
||||
|
||||
cosy.RegisterMigration(migrate.Migrations)
|
||||
|
||||
cosy.RegisterInitFunc(kernel.Boot, router.InitRouter)
|
||||
|
||||
// Initialize settings package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue