(ctx context.Context)
| 601 | } |
| 602 | |
| 603 | func (s cloud) runUI(ctx context.Context) (err error) { |
| 604 | logInfo.Printf("Starting UI\n") |
| 605 | defer logInfo.Printf("Stopped UI\n") |
| 606 | |
| 607 | cmd := newCmd(ctx, "npm", "run", "dev", "-w", "web-admin") |
| 608 | cmd.Stdout = os.Stdout |
| 609 | cmd.Stderr = os.Stdout |
| 610 | return cmd.Run() |
| 611 | } |
| 612 | |
| 613 | func (s cloud) awaitUI(ctx context.Context) error { |
| 614 | uiURL := lookupDotenv("RILL_ADMIN_FRONTEND_URL") // TODO: This is a proxy for the frontend's external URL. Should be less implicit. |