We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06138ca commit 46c1675Copy full SHA for 46c1675
backend/application/workflow/init.go
@@ -18,6 +18,7 @@ package workflow
18
19
import (
20
"context"
21
+ "path/filepath"
22
23
"gopkg.in/yaml.v3"
24
"os"
@@ -61,7 +62,11 @@ type ServiceComponents struct {
61
62
}
63
64
func initWorkflowConfig() (workflow.WorkflowConfig, error) {
- configBs, err := os.ReadFile("resources/conf/workflow/config.yaml")
65
+ wd, err := os.Getwd()
66
+ if err != nil {
67
+ return nil, err
68
+ }
69
+ configBs, err := os.ReadFile(filepath.Join(wd, "resources/conf/workflow/config.yaml"))
70
if err != nil {
71
return nil, err
72
0 commit comments