mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
feat: implement fetching the process-specific kustomize root path
This commit is contained in:
@@ -1500,7 +1500,17 @@ func getStartCommand(input StartCommandInput) (StartCommandOutput, error) {
|
||||
}
|
||||
|
||||
func getProcessSpecificKustomizeRootPath(appName string) string {
|
||||
return ""
|
||||
if !hasKustomizeDirectory(appName) {
|
||||
return ""
|
||||
}
|
||||
|
||||
directory := getKustomizeDirectory(appName)
|
||||
processSpecificDirectory := fmt.Sprintf("%s.%s", directory, os.Getenv("DOKKU_PID"))
|
||||
if common.DirectoryExists(processSpecificDirectory) {
|
||||
return processSpecificDirectory
|
||||
}
|
||||
|
||||
return directory
|
||||
}
|
||||
|
||||
func hasKustomizeDirectory(appName string) bool {
|
||||
|
||||
Reference in New Issue
Block a user