diff options
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/install.go b/routers/install.go index 516d11e4aa..c63ac6909c 100644 --- a/routers/install.go +++ b/routers/install.go @@ -54,11 +54,12 @@ func GlobalInit() { log.Trace("Log path: %s", setting.LogRootPath) mailer.NewMailerContext() models.LoadModelsConfig() - models.LoadRepoConfig() - models.NewRepoContext() NewServices() if setting.InstallLock { + models.LoadRepoConfig() + models.NewRepoContext() + if err := models.NewEngine(); err != nil { log.Fatal(4, "Fail to initialize ORM engine: %v", err) } |