caprover / caprover-cli

Command Line Interface for https://github.com/caprover/caprover
72 stars 39 forks source link

Deploy command with--default argument #51

Closed ghost closed 4 years ago

ghost commented 4 years ago

When running the deploy command with --default on a newly created app, the cli throws an error

"xxxxxx app not exist on this CapRover machine."

Where xxxxx is a previously deleted app of a different name.

Removing the --default argument solves it.

githubsaturn commented 4 years ago

Can you please provide a step by step reproducible scenario? Like 1- Create a new app on CapRover named "new-app-1" 2- ....

githubsaturn commented 4 years ago

This turned out to be a non issue. CapRover uses the directory to map the previous deploy. If the directly was mapped to another app, --default would try to deploy to that app.