Skip to content

Commit

Permalink
check env file is specified (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalmalani committed Nov 23, 2022
1 parent b31e0a6 commit 8d46213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 8d46213

Please sign in to comment.