Skip to content

read config file failed no such file or directory #298

@fulus06

Description

@fulus06
func main() {
        // read config file failed server=2 error=open /Users/Library/Caches/JetBrains/GoLand2024.3/tmp/GoLand/config-dev.yaml: no such file or directory
	conf := flag.String("c", "config.yaml", "config file")
	//  修复bug
	conf := flag.String("c", "/Users/workspace/revocloud/monibuca/example/default/config.yaml", "config file")
	flag.Parse()
	// ctx, _ := context.WithDeadline(context.Background(), time.Now().Add(time.Second*100))
	m7s.Run(context.Background(), *conf)
}

必须使用绝对路径

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions