From 8d46213abebae615d43dbae8096d94193dae7583 Mon Sep 17 00:00:00 2001 From: kushalmalani Date: Wed, 23 Nov 2022 12:21:47 -0800 Subject: [PATCH] check env file is specified (#898) --- cloud/deploy/deploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/deploy/deploy.go b/cloud/deploy/deploy.go index a2f3930b3..832f5f56d 100644 --- a/cloud/deploy/deploy.go +++ b/cloud/deploy/deploy.go @@ -254,7 +254,7 @@ func Deploy(deployInput InputDeploy, client astro.Client) error { //nolint fmt.Sprintf("\n Airflow UI: %s", ansi.Bold(deployInfo.webserverURL))) } else { envFileExists, _ := fileutil.Exists(deployInput.EnvFile, nil) - if !envFileExists { + if !envFileExists && deployInput.EnvFile != ".env" { return fmt.Errorf("%w %s", envFileMissing, deployInput.EnvFile) }