Skip to content

Commit

Permalink
fix: don't ignore --bind on ftl dev/serve (#1867)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas authored Jun 25, 2024
1 parent c7d272c commit e661e29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/ftl/cmd_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ import (
)

type serveCmd struct {
Bind *url.URL `help:"Starting endpoint to bind to and advertise to. Each controller and runner will increment the port by 1" default:"http://localhost:8892"`
IngressBind *url.URL `help:"Starting endpoint to bind to for http ingress" default:"http://localhost:8891"`
Bind *url.URL `help:"Starting endpoint to bind to and advertise to. Each controller, ingress and runner will increment the port by 1" default:"http://localhost:8891"`
DBPort int `help:"Port to use for the database." default:"15432"`
Recreate bool `help:"Recreate the database even if it already exists." default:"false"`
Controllers int `short:"c" help:"Number of controllers to start." default:"1"`
Expand Down Expand Up @@ -105,7 +104,7 @@ func (s *serveCmd) Run(ctx context.Context, projConfig projectconfig.Config) err

wg, ctx := errgroup.WithContext(ctx)

bindAllocator, err := bind.NewBindAllocator(s.IngressBind)
bindAllocator, err := bind.NewBindAllocator(s.Bind)
if err != nil {
return err
}
Expand Down

0 comments on commit e661e29

Please sign in to comment.