parent
6998a87eef
commit
3d3eefb2fe
|
@ -28,6 +28,9 @@ func ValidateRecipe(c *cli.Context) recipe.Recipe {
|
||||||
recipe, err := recipe.Get(recipeName)
|
recipe, err := recipe.Get(recipeName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if c.Command.Name == "generate" {
|
if c.Command.Name == "generate" {
|
||||||
|
if strings.Contains(err.Error(), "missing a compose") {
|
||||||
|
logrus.Fatal(err)
|
||||||
|
}
|
||||||
logrus.Warn(err)
|
logrus.Warn(err)
|
||||||
} else {
|
} else {
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
|
|
|
@ -81,6 +81,10 @@ func Get(recipeName string) (Recipe, error) {
|
||||||
return Recipe{}, err
|
return Recipe{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(composeFiles) == 0 {
|
||||||
|
return Recipe{}, fmt.Errorf("%s is missing a compose.yml or compose.*.yml file?", recipeName)
|
||||||
|
}
|
||||||
|
|
||||||
envSamplePath := path.Join(config.ABRA_DIR, "apps", recipeName, ".env.sample")
|
envSamplePath := path.Join(config.ABRA_DIR, "apps", recipeName, ".env.sample")
|
||||||
sampleEnv, err := config.ReadEnv(envSamplePath)
|
sampleEnv, err := config.ReadEnv(envSamplePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue