refactor: use --watch-config instead of signaling the container to reload config

This commit is contained in:
Jose Diaz-Gonzalez
2021-01-04 21:48:28 -05:00
parent 0b3a6687f6
commit 711945147b
2 changed files with 2 additions and 13 deletions

View File

@@ -244,11 +244,6 @@ func DockerInspect(containerOrImageID, format string) (output string, err error)
return
}
// DockerSignal sends a given signal (in string form) to a docker container
func DockerSignal(containerID, signal string) (err error) {
return sh.Command(DockerBin(), "kill", fmt.Sprintf("--signal=%s", signal), containerID).Run()
}
// IsImageHerokuishBased returns true if app image is based on herokuish
func IsImageHerokuishBased(image string, appName string) bool {
output, err := DockerInspect(image, "{{range .Config.Env}}{{if eq . \"USER=herokuishuser\" }}{{println .}}{{end}}{{end}}")