Skip to content

Commit

Permalink
fix: remove init-db flag (#3869)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Dec 30, 2024
1 parent 57462a4 commit 8757910
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions frontend/cli/cmd_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@ 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:""`
}

func (d *devCmd) Run(
ctx context.Context,
k *kong.Kong,
kctx *kong.Context,
cm *manager.Manager[configuration.Configuration],
sm *manager.Manager[configuration.Secrets],
projConfig projectconfig.Config,
Expand Down Expand Up @@ -76,13 +74,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 8757910

Please sign in to comment.