Skip to content

Commit

Permalink
fix(cli/deploy): Fail deploying if no app was found in non-interactiv…
Browse files Browse the repository at this point in the history
…e mode
  • Loading branch information
xdoardo authored and theduke committed Sep 6, 2024
1 parent 82a8f2a commit 98d0673
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/cli/src/commands/app/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,12 @@ impl AsyncCliCommand for CmdAppDeploy {
|| self.package.is_some()
|| self.use_local_manifest
{
// Create already points back to deploy.
return self.create().await;
if !self.non_interactive {
// Create already points back to deploy.
return self.create().await;
} else {
anyhow::bail!("No app configuration was found in {}. Create an app before deploying or re-run in interactive mode!", app_config_path.display());
}
}

assert!(app_config_path.is_file());
Expand Down

0 comments on commit 98d0673

Please sign in to comment.