mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
chore: reorder functions
This commit is contained in:
@@ -70,6 +70,16 @@ func getProcfilePath(appName string) string {
|
||||
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) {
|
||||
options, err := dockeroptions.GetDockerOptionsForPhase(appName, "deploy")
|
||||
if err != nil {
|
||||
@@ -275,16 +285,6 @@ func scaleSet(appName string, skipDeploy bool, clearExisting bool, processTuples
|
||||
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 {
|
||||
formations := FormationSlice{}
|
||||
if !clearExisting {
|
||||
|
||||
Reference in New Issue
Block a user