MCPcopy Index your code
hub / github.com/rilldata/rill / runUI

Method runUI

cli/cmd/devtool/start.go:603–611  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

601}
602
603func (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
613func (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.

Callers 1

startMethod · 0.95

Calls 3

newCmdFunction · 0.85
PrintfMethod · 0.80
RunMethod · 0.45

Tested by

no test coverage detected