启动任务调度。

This commit is contained in:
Mr. Lan 2020-08-15 11:45:00 +08:00
parent df650a0263
commit 9a8ea8d493
3 changed files with 11 additions and 1 deletions

View File

@ -17,6 +17,7 @@ settings:
password: your password password: your password
port: 3306 port: 3306
username: ferry username: ferry
domain: http://192.168.0.100:9527
email: email:
alias: ferry alias: ferry
host: smtp.163.com host: smtp.163.com
@ -33,7 +34,9 @@ settings:
log: log:
dir: logs dir: logs
operdb: false operdb: false
redis:
host: 127.0.0.1
port: 6379
ssl: ssl:
key: keystring key: keystring
pem: temp/pem.pem pem: temp/pem.pem
domain: http://192.168.0.100:9527

View File

@ -26,6 +26,9 @@ settings:
password: 123456 password: 123456
port: 3306 port: 3306
username: root username: root
redis:
host: 127.0.0.1
port: 6379
email: email:
alias: ferry alias: ferry
host: smtp.163.com host: smtp.163.com

View File

@ -2,8 +2,12 @@ package main
import ( import (
"ferry/cmd" "ferry/cmd"
"ferry/pkg/task"
) )
func main() { func main() {
// 启动异步任务队列
go task.Start()
cmd.Execute() cmd.Execute()
} }