More cli compatibility check
All checks were successful
release-nightly / build-docker (push) Successful in 1m6s

This commit is contained in:
2023-12-13 20:05:34 +08:00
parent 0d8583e395
commit 17196c5835
3 changed files with 12 additions and 3 deletions

View File

@ -31,6 +31,8 @@ var DeployCommands = []*cli.Command{
server, ok := conn.GetConnection(ctx.Args().Get(0))
if !ok {
return fmt.Errorf("server was not found, use \"rds connect\" add one first")
} else if err := server.CheckConnectivity(); err != nil {
return fmt.Errorf("couldn't connect server: %s", err.Error())
}
// Send request
@ -65,6 +67,8 @@ var DeployCommands = []*cli.Command{
server, ok := conn.GetConnection(ctx.Args().Get(0))
if !ok {
return fmt.Errorf("server was not found, use \"rds connect\" add one first")
} else if err := server.CheckConnectivity(); err != nil {
return fmt.Errorf("couldn't connect server: %s", err.Error())
}
var site sign.SiteConfig