Skip to content

Commit

Permalink
Update deploy trigger command
Browse files Browse the repository at this point in the history
  • Loading branch information
rugwirobaker committed Aug 22, 2024
1 parent 219c4bf commit a556fe5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/command/deploy/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ func deployRemotely(ctx context.Context, manifest *DeployManifest) error {
return err
}

// the command should convert the encoded manifest back to json and pipe it to `fly deploy --manifest -`
cmd := fmt.Sprintf(`bash -c "echo %s | curl -s --unix-socket /var/run/fly/deployer.sock -X POST --data-binary @- http://localhost/deploy"`, manifestBase64)
cmd := `bash -c "curl -s --unix-socket /var/run/fly/deployer.sock -X POST http://localhost/deploy"`
fmt.Fprintln(io.Out, "Executing deploy command on remote deployer")

res, err := deployer.flaps.Exec(ctx, deployer.machine.ID, &fly.MachineExecRequest{
Expand Down

0 comments on commit a556fe5

Please sign in to comment.