Browse Source

fix 51

tags/v1.21.12.1
yuyuanshifu 5 years ago
parent
commit
7ede275e40
4 changed files with 5 additions and 2 deletions
  1. +2
    -0
      custom/conf/app.ini.sample
  2. +0
    -1
      main.go
  3. +1
    -1
      modules/worker/worker.go
  4. +2
    -0
      routers/init.go

+ 2
- 0
custom/conf/app.ini.sample View File

@@ -753,6 +753,8 @@ MINIO_LOCATION = us-east-1
MINIO_BASE_PATH = attachments/
; Minio enabled ssl only available when STORE_TYPE is `minio`
MINIO_USE_SSL = false
; real Minio storage path
MINIO_REAL_PATH = /mnt/test/minio/data/

[time]
; Specifies the format for fully outputted dates. Defaults to RFC1123


+ 0
- 1
main.go View File

@@ -22,7 +22,6 @@ import (
_ "code.gitea.io/gitea/modules/markup/markdown"
_ "code.gitea.io/gitea/modules/markup/orgmode"
_ "code.gitea.io/gitea/modules/timer"
_ "code.gitea.io/gitea/modules/worker"

"github.com/urfave/cli"
)


+ 1
- 1
modules/worker/worker.go View File

@@ -10,7 +10,7 @@ var (
AsyncTaskCenter *machinery.Server
)

func init() {
func Init() {
tc, err := NewTaskCenter()
if err != nil {
panic(err)


+ 2
- 0
routers/init.go View File

@@ -31,6 +31,7 @@ import (
"code.gitea.io/gitea/modules/storage"
"code.gitea.io/gitea/modules/task"
"code.gitea.io/gitea/modules/webhook"
"code.gitea.io/gitea/modules/worker"
"code.gitea.io/gitea/services/mailer"
mirror_service "code.gitea.io/gitea/services/mirror"
pull_service "code.gitea.io/gitea/services/pull"
@@ -61,6 +62,7 @@ func NewServices() {
mailer.NewContext()
_ = cache.NewContext()
notification.NewContext()
worker.Init()
}

// In case of problems connecting to DB, retry connection. Eg, PGSQL in Docker Container on Synology


Loading…
Cancel
Save