summaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/init.go')
-rw-r--r--routers/init.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/init.go b/routers/init.go
index c842b5d38e..2f12058ac5 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -28,6 +28,7 @@ import (
"code.gitea.io/gitea/modules/options"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/ssh"
+ "code.gitea.io/gitea/modules/storage"
"code.gitea.io/gitea/modules/svg"
"code.gitea.io/gitea/modules/task"
"code.gitea.io/gitea/modules/webhook"
@@ -54,6 +55,9 @@ func checkRunMode() {
// NewServices init new services
func NewServices() {
setting.NewServices()
+ if err := storage.Init(); err != nil {
+ log.Fatal("storage init failed: %v", err)
+ }
mailer.NewContext()
_ = cache.NewContext()
notification.NewContext()