Skip to content

Commit

Permalink
启动任务调度。
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyulei committed Aug 15, 2020
1 parent df650a0 commit 9a8ea8d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/settings.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ settings:
password: your password
port: 3306
username: ferry
domain: http://192.168.0.100:9527
email:
alias: ferry
host: smtp.163.com
Expand All @@ -33,7 +34,9 @@ settings:
log:
dir: logs
operdb: false
redis:
host: 127.0.0.1
port: 6379
ssl:
key: keystring
pem: temp/pem.pem
domain: http://192.168.0.100:9527
3 changes: 3 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ settings:
password: 123456
port: 3306
username: root
redis:
host: 127.0.0.1
port: 6379
email:
alias: ferry
host: smtp.163.com
Expand Down
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ package main

import (
"ferry/cmd"
"ferry/pkg/task"
)

func main() {
// 启动异步任务队列
go task.Start()

cmd.Execute()
}

0 comments on commit 9a8ea8d

Please sign in to comment.