Skip to content

Commit

Permalink
fix: remove init-db flag
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Dec 30, 2024
1 parent 57462a4 commit 859b6c0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions frontend/cli/cmd_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ type devCmd struct {
NoServe bool `help:"Do not start the FTL server." default:"false"`
Lsp bool `help:"Run the language server." default:"false"`
ServeCmd serveCommonConfig `embed:""`
InitDB bool `help:"Initialize the database and exit." default:"false"`
languageServer *lsp.Server
Build buildCmd `embed:""`
}
Expand Down Expand Up @@ -76,13 +75,6 @@ func (d *devCmd) Run(
return KillBackgroundServe(logger)
}

if d.InitDB {
err := dev.SetupPostgres(ctx, optional.Some(d.ServeCmd.DatabaseImage), d.ServeCmd.DBPort, true)
if err != nil {
return fmt.Errorf("failed to setup database: %w", err)
}
return nil
}
statusManager := terminal.FromContext(ctx)
defer statusManager.Close()
starting := statusManager.NewStatus("\u001B[92mStarting FTL Server 🚀\u001B[39m")
Expand Down

0 comments on commit 859b6c0

Please sign in to comment.