Merge pull request #4373 from dokku/fast-scale
Do not attempt to extract Procfile in ps:scale
This commit is contained in:
2 files changed
+1
-15
No files matched your search
@@ -9,3 +9,4 @@
|
|||||||
/pre-*
|
/pre-*
|
||||||
/procfile-*
|
/procfile-*
|
||||||
/app-restart
|
/app-restart
|
||||||
|
/core-post-deploy
|
||||||
@@ -121,21 +121,6 @@ func CommandScale(appName string, skipDeploy bool, processTuples []string) error
|
|||||||
}
|
}
|
||||||
|
|
||||||
procfilePath := getProcfilePath(appName)
|
procfilePath := getProcfilePath(appName)
|
||||||
if !common.FileExists(procfilePath) {
|
|
||||||
extract := func() error {
|
|
||||||
image, err := common.GetDeployingAppImageName(appName, "", "")
|
|
||||||
if err != nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return extractProcfile(appName, image)
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := common.SuppressOutput(extract); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if !hasScaleFile(appName) || common.FileExists(procfilePath) {
|
if !hasScaleFile(appName) || common.FileExists(procfilePath) {
|
||||||
update := func() error {
|
update := func() error {
|
||||||
return updateScalefile(appName, make(map[string]int))
|
return updateScalefile(appName, make(map[string]int))
|
||||||
|
|||||||
Reference in new issue
Block a user