| 696 | } |
| 697 | |
| 698 | func (s local) runRuntime(ctx context.Context, verbose, reset bool) error { |
| 699 | logInfo.Printf("Starting runtime\n") |
| 700 | defer func() { logInfo.Printf("Stopped runtime\n") }() |
| 701 | |
| 702 | args := []string{"run", "cli/main.go", "start", stateDirLocal, "--no-ui", "--debug", "--allowed-origins", "http://localhost:3001"} |
| 703 | if verbose { |
| 704 | args = append(args, "--verbose") |
| 705 | } |
| 706 | if reset { |
| 707 | args = append(args, "--reset") |
| 708 | } |
| 709 | |
| 710 | cmd := newCmd(ctx, "go", args...) |
| 711 | cmd.Stdout = os.Stdout |
| 712 | cmd.Stderr = os.Stdout |
| 713 | return cmd.Run() |
| 714 | } |
| 715 | |
| 716 | func (s local) awaitRuntime(ctx context.Context) error { |
| 717 | pingURL := "http://localhost:9009/v1/ping" |