mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
chore: rewrite log message
This change makes it more clear as to what is being executed.
This commit is contained in:
@@ -113,10 +113,13 @@ func getReleaseCommand(appName string, image string) string {
|
||||
func executeScript(appName string, imageTag string, phase string) error {
|
||||
image := common.GetDeployingAppImageName(appName, imageTag, "")
|
||||
command := ""
|
||||
phaseSource := ""
|
||||
if phase == "release" {
|
||||
command = getReleaseCommand(appName, imageTag)
|
||||
phaseSource = "Procfile"
|
||||
} else {
|
||||
var err error
|
||||
phaseSource = "app.json"
|
||||
if command, err = getPhaseScript(appName, image, phase); err != nil {
|
||||
common.LogExclaim(err.Error())
|
||||
}
|
||||
@@ -126,7 +129,7 @@ func executeScript(appName string, imageTag string, phase string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
common.LogExclaim(fmt.Sprintf("Command declared for %s phase: '%s'", phase, command))
|
||||
common.LogInfo1(fmt.Sprintf("Executing %s command from %s: '%s'", phase, phaseSource, command))
|
||||
isHerokuishImage := common.IsImageHerokuishBased(image, appName)
|
||||
script := constructScript(command, isHerokuishImage)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user