Skip to content

Commit

Permalink
fix: do not use remote endpoint for deploy’s bind allocator (#3224)
Browse files Browse the repository at this point in the history
Hacky fix. Will fix properly later.
  • Loading branch information
matt2e authored Oct 29, 2024
1 parent 325ea88 commit 8f9cf91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/cli/cmd_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"context"
"fmt"
"net/url"

"github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1/ftlv1connect"
"github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1beta1/provisioner/provisionerconnect"
Expand All @@ -28,7 +29,11 @@ func (d *deployCmd) Run(ctx context.Context, projConfig projectconfig.Config) er
}

// use the cli endpoint to create the bind allocator, but leave the first port unused as it is meant to be reserved by a controller
bindAllocator, err := bind.NewBindAllocator(cli.Endpoint, 0)
bindURL, err := url.Parse("http://127.0.0.1:8892")
if err != nil {
return fmt.Errorf("could not parse default bind URL: %w", err)
}
bindAllocator, err := bind.NewBindAllocator(bindURL, 0)
if err != nil {
return fmt.Errorf("could not create bind allocator: %w", err)
}
Expand Down

0 comments on commit 8f9cf91

Please sign in to comment.