Merge pull request #1051 from crawlab-team/20220103-anyin/develop

20220103_anyin_fix startup error
This commit is contained in:
暗音
2022-01-03 23:31:51 +08:00
committed by GitHub
3 changed files with 18 additions and 19 deletions

View File

@@ -30,6 +30,7 @@ func Execute() error {
func init() {
cobra.OnInitialize(initConfig)
rootCmd.PersistentFlags().StringVar(&cfgFile, "c", "", "Use Custom Config File")
}
func initConfig() {

View File

@@ -3,18 +3,16 @@ module crawlab
go 1.16
replace (
github.com/crawlab-team/crawlab-core => /libs/crawlab-team/crawlab-core
github.com/crawlab-team/crawlab-vcs => /libs/crawlab-team/crawlab-vcs
github.com/crawlab-team/crawlab-fs => /libs/crawlab-team/crawlab-fs
github.com/crawlab-team/crawlab-db => /libs/crawlab-team/crawlab-db
github.com/crawlab-team/crawlab-core => /Users/chenjingyang/dev/my-job/gitee/crawlab-core
github.com/crawlab-team/goseaweedfs => /Users/chenjingyang/dev/my-job/gitee/goseaweedfs
)
require (
github.com/apex/log v1.9.0
github.com/crawlab-team/crawlab-core v0.6.0-beta.20211219.2134
github.com/crawlab-team/go-trace v0.1.1
github.com/gin-gonic/gin v1.7.1
github.com/spf13/cobra v1.1.3
github.com/spf13/viper v1.7.1
go.uber.org/dig v1.10.0
github.com/apex/log v1.9.0
github.com/crawlab-team/crawlab-core v0.6.0-beta.20211230.1200
github.com/crawlab-team/go-trace v0.1.1
github.com/gin-gonic/gin v1.7.1
github.com/spf13/cobra v1.1.3
github.com/spf13/viper v1.7.1
go.uber.org/dig v1.10.0
)

View File

@@ -12,15 +12,15 @@ services:
- mongo
# volumes:
# - "/var/crawlab/log:/var/logs/crawlab" # log persistent 日志持久化
#worker:
# image: tikazyq/crawlab:latest
# container_name: worker
# environment:
# CRAWLAB_SERVER_MASTER: "N"
# CRAWLAB_MONGO_HOST: "mongo"
worker:
image: crawlabteam/crawlab:latest
container_name: worker
environment:
CRAWLAB_SERVER_MASTER: "N"
CRAWLAB_MONGO_HOST: "mongo"
# CRAWLAB_REDIS_ADDRESS: "redis"
# depends_on:
# - mongo
depends_on:
- mongo
# volumes:
# - "/var/crawlab/log:/var/logs/crawlab" # log persistent 日志持久化
mongo: