refactor: move all golang code for managing data directories to common plugin
Additionally, ensure the golang plugins handle setup/teardown of plugin and app-specific data directories during install, rename, and clone phases.
This commit is contained in:
@@ -66,7 +66,7 @@ func getProcfileCommand(procfilePath string, processType string, port int) (stri
|
||||
}
|
||||
|
||||
func getProcfilePath(appName string) string {
|
||||
directory := filepath.Join(common.MustGetEnv("DOKKU_LIB_ROOT"), "data", "ps", appName)
|
||||
directory := common.GetAppDataDirectory("ps", appName)
|
||||
return filepath.Join(directory, "Procfile")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user