Skip to content

Commit 88f7fe8

Browse files
committed
Disable launch if config already exists
1 parent 3296496 commit 88f7fe8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/launch.go

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ var launchCmd = &cobra.Command{
4040
os.Exit(1)
4141
}
4242

43+
if utils.FileExists("./sidekick.yml") {
44+
pterm.Error.Println("Sidekick config exits in this project.")
45+
pterm.Info.Println("You can deploy a new version of your application with Sidekick deploy.")
46+
os.Exit(1)
47+
}
48+
4349
if utils.FileExists("./Dockerfile") {
4450
pterm.Info.Println("Dockerfile detected - scanning file for details")
4551
} else {

0 commit comments

Comments
 (0)