INNER CODE UNIT · Go
init
yarlson/ftl · cmd/deploy.go:29
func init() {
rootCmd.AddCommand(deployCmd)
}
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))