diff options
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/install.go b/routers/install.go index 00171faa5f..651f2f2f5d 100644 --- a/routers/install.go +++ b/routers/install.go @@ -65,14 +65,14 @@ func GlobalInit() { if setting.InstallLock { highlight.NewContext() markdown.BuildSanitizer() - - models.LoadRepoConfig() - models.NewRepoContext() if err := models.NewEngine(); err != nil { log.Fatal(4, "Fail to initialize ORM engine: %v", err) } models.HasEngine = true + models.LoadRepoConfig() + models.NewRepoContext() + // Booting long running goroutines. cron.NewContext() models.InitSyncMirrors() |