forked from coop-cloud/abra
parent
b6fe86f2ad
commit
6c115926e3
|
@ -53,9 +53,14 @@ func Get(recipeName string) (Recipe, error) {
|
|||
return Recipe{}, err
|
||||
}
|
||||
|
||||
envSamplePath := path.Join(config.ABRA_DIR, "apps", recipeName, ".env.sample")
|
||||
sampleEnv, err := config.ReadEnv(envSamplePath)
|
||||
if err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
opts := stack.Deploy{Composefiles: composeFiles}
|
||||
emptyEnv := make(map[string]string)
|
||||
config, err := loader.LoadComposefile(opts, emptyEnv)
|
||||
config, err := loader.LoadComposefile(opts, sampleEnv)
|
||||
if err != nil {
|
||||
return Recipe{}, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue