Пример #1
0
func install(exporter *exporter.Exporter, appName string, pathToProcfile string) {
	if pathToProcfile == "" {
		panic("No procfile given")
	}

	if app, err := procfile.ReadProcfile(pathToProcfile); err == nil {
		exporter.Install(appName, app)
		fmt.Println("service installed to", exporter.Config.TargetDir)
	} else {
		panic(err)
	}
}
Пример #2
0
func uninstall(exporter *exporter.Exporter, appName string) {
	exporter.Uninstall(appName)
	fmt.Println("service uninstalled")
}