Skip to content

Commit

Permalink
fix docker mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Mar 23, 2024
1 parent b710398 commit 1eb6659
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ networks:
- subnet: '177.7.0.0/16'

# 设置mysql,redis持久化保存
volumes:
mysql:
#volumes:
# mysql:

services:
mysql:
Expand Down
2 changes: 1 addition & 1 deletion server/config.docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ autocode:
server-service: /service
web: /web/src
web-api: /api
web-flow: /view
web-form: /view
web-table: /view
web-flow: /view
captcha:
key-long: 6
img-width: 240
Expand Down
5 changes: 5 additions & 0 deletions server/search/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,31 @@ func ScanTask() {
gitlabsearch.RunTask(Interval)
} else if err != nil {
global.GVA_LOG.Error("CheckTaskStatus for gitlab err", zap.Error(err))
break
}
if enable, err := service.CheckTaskStatus("codesearch"); enable {
codesearch.RunTask(Interval)
} else if err != nil {
global.GVA_LOG.Error("CheckTaskStatus for codesearch err", zap.Error(err))
break
}
if enable, err := service.CheckTaskStatus("github"); enable {
githubsearch.RunTask(Interval)
} else if err != nil {
global.GVA_LOG.Error("CheckTaskStatus for github err", zap.Error(err))
break
}
if enable, err := service.CheckTaskStatus("gobuster"); enable {
gobuster.RunTask(Interval)
} else if err != nil {
global.GVA_LOG.Error("CheckTaskStatus for gobuster err", zap.Error(err))
break
}
if enable, err := service.CheckTaskStatus("postman"); enable {
postman.RunTask()
} else if err != nil {
global.GVA_LOG.Error("CheckTaskStatus for postman err", zap.Error(err))
break
}
}

Expand Down

0 comments on commit 1eb6659

Please sign in to comment.