chore: reorder functions
This commit is contained in:
@@ -70,6 +70,16 @@ func getProcfilePath(appName string) string {
|
|||||||
return filepath.Join(directory, "Procfile")
|
return filepath.Join(directory, "Procfile")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getProcessSpecificProcfilePath(appName string) string {
|
||||||
|
existingProcfile := getProcfilePath(appName)
|
||||||
|
processSpecificProcfile := fmt.Sprintf("%s.%s", existingProcfile, os.Getenv("DOKKU_PID"))
|
||||||
|
if common.FileExists(processSpecificProcfile) {
|
||||||
|
return processSpecificProcfile
|
||||||
|
}
|
||||||
|
|
||||||
|
return existingProcfile
|
||||||
|
}
|
||||||
|
|
||||||
func getRestartPolicy(appName string) (string, error) {
|
func getRestartPolicy(appName string) (string, error) {
|
||||||
options, err := dockeroptions.GetDockerOptionsForPhase(appName, "deploy")
|
options, err := dockeroptions.GetDockerOptionsForPhase(appName, "deploy")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -275,16 +285,6 @@ func scaleSet(appName string, skipDeploy bool, clearExisting bool, processTuples
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getProcessSpecificProcfilePath(appName string) string {
|
|
||||||
existingProcfile := getProcfilePath(appName)
|
|
||||||
processSpecificProcfile := fmt.Sprintf("%s.%s", existingProcfile, os.Getenv("DOKKU_PID"))
|
|
||||||
if common.FileExists(processSpecificProcfile) {
|
|
||||||
return processSpecificProcfile
|
|
||||||
}
|
|
||||||
|
|
||||||
return existingProcfile
|
|
||||||
}
|
|
||||||
|
|
||||||
func updateScale(appName string, clearExisting bool, formationUpdates FormationSlice) error {
|
func updateScale(appName string, clearExisting bool, formationUpdates FormationSlice) error {
|
||||||
formations := FormationSlice{}
|
formations := FormationSlice{}
|
||||||
if !clearExisting {
|
if !clearExisting {
|
||||||
|
|||||||
Reference in New Issue
Block a user