🐛 Bug fixes
All checks were successful
release-nightly / build-docker (push) Successful in 1m8s

This commit is contained in:
LittleSheep 2023-12-10 19:04:43 +08:00
parent be5ed05175
commit f490a8e309

View File

@ -2,7 +2,6 @@ package deploy
import (
"context"
"encoding/json"
"fmt"
"io"
"os"
@ -117,10 +116,9 @@ var DeployCommands = []*cli.Command{
yaml.Unmarshal(raw, &site)
}
raw, _ := json.Marshal(site)
url := fmt.Sprintf("/webhooks/sync/%s", ctx.Args().Get(1))
client := fiber.Put(server.Url+url).
Body(raw).
JSON(site).
BasicAuth("RoadSign CLI", server.Credential)
if status, data, err := client.Bytes(); len(err) > 0 {