2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00
Files
panel/internal/bootstrap/app.go
2024-09-19 01:37:39 +08:00

31 lines
311 B
Go

package bootstrap
import (
"runtime/debug"
)
func boot() {
debug.SetGCPercent(10)
debug.SetMemoryLimit(64 << 20)
initConf()
initGlobal()
initOrm()
runMigrate()
}
func BootWeb() {
boot()
initValidator()
initSession()
initQueue()
go initHttp()
select {}
}
func BootCli() {
boot()
initCli()
}