mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 02:07:18 +08:00
22 lines
333 B
Go
22 lines
333 B
Go
package bootstrap
|
|
|
|
import (
|
|
"github.com/goravel/framework/foundation"
|
|
"github.com/goravel/framework/support/carbon"
|
|
|
|
"panel/config"
|
|
)
|
|
|
|
func Boot() {
|
|
app := foundation.NewApplication()
|
|
|
|
// Bootstrap the application
|
|
app.Boot()
|
|
|
|
// Bootstrap the config.
|
|
config.Boot()
|
|
|
|
// 设置 Carbon 时区
|
|
carbon.SetTimezone(carbon.PRC)
|
|
}
|