mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 02:07:18 +08:00
26 lines
388 B
Go
26 lines
388 B
Go
package bootstrap
|
|
|
|
import (
|
|
"runtime/debug"
|
|
|
|
"github.com/gookit/validate/locales/zhcn"
|
|
"github.com/goravel/framework/foundation"
|
|
|
|
"github.com/TheTNB/panel/config"
|
|
)
|
|
|
|
func Boot() {
|
|
debug.SetGCPercent(10)
|
|
debug.SetMemoryLimit(64 << 20)
|
|
|
|
zhcn.RegisterGlobal()
|
|
|
|
app := foundation.NewApplication()
|
|
|
|
// Bootstrap the application
|
|
app.Boot()
|
|
|
|
// Bootstrap the config.
|
|
config.Boot()
|
|
}
|