fix: use correct conditional check for isHerokuishContainer

This commit is contained in:
Jose Diaz-Gonzalez
2017-05-02 00:32:39 -06:00
committed by Michael Hobbs
parent 6e76831b5d
commit 6f008d6643

View File

@@ -45,7 +45,7 @@ func GetContainerPort(appName string, procType string, isHerokuishContainer bool
dockerfilePorts := make([]string, 0) dockerfilePorts := make([]string, 0)
port := "" port := ""
if isHerokuishContainer { if !isHerokuishContainer {
configValue := config.GetWithDefault(appName, "DOKKU_DOCKERFILE_PORTS", "") configValue := config.GetWithDefault(appName, "DOKKU_DOCKERFILE_PORTS", "")
if configValue != "" { if configValue != "" {
dockerfilePorts = strings.Split(configValue, " ") dockerfilePorts = strings.Split(configValue, " ")