INNER CODE UNIT · Go

runDeploy

yarlson/ftl · cmd/deploy.go:33

func runDeploy(cmd *cobra.Command, args []string) {
	pDeploy := pin.New("Deploying", pin.WithSpinnerColor(pin.ColorCyan))

	cancelDeploy := pDeploy.Start(context.Background())
	defer cancelDeploy()

	cfg, err := parseConfig("ftl.yaml")
	if err != nil {
		pDeploy.Fail(fmt.Sprintf("Failed to parse config file: %v", err))
		return
	}

	if err := deployToServer(cfg.Project.Name, cfg, pDeploy); err != nil {
		pDeploy.Fail(fmt.Sprintf("Deployment failed: %v", err))
		return
	}

	pDeploy.Stop("Deployment completed successfully")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…