deploy calls the provided command to deploy the app from the temporary directory.
()
| 62 | |
| 63 | // deploy calls the provided command to deploy the app from the temporary directory. |
| 64 | func deploy() error { |
| 65 | vlogf("Running command %v", flag.Args()) |
| 66 | cmd := exec.Command(flag.Arg(0), flag.Args()[1:]...) |
| 67 | cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr |
| 68 | if err := cmd.Run(); err != nil { |
| 69 | return fmt.Errorf("unable to run %q: %v", strings.Join(flag.Args(), " "), err) |
| 70 | } |
| 71 | return nil |
| 72 | } |