feat: implement ps-can-scale

This commit is contained in:
Jose Diaz-Gonzalez
2021-08-01 16:27:13 -04:00
parent 70eb751868
commit bd4621070c
3 changed files with 15 additions and 4 deletions

View File

@@ -16,7 +16,8 @@ import (
)
func canScaleApp(appName string) bool {
return !common.FileExists(getScalefileExtractedPath(appName))
canScale := common.PropertyGetDefault("ps", appName, "can-scale", "true")
return common.ToBool(canScale)
}
func extractProcfile(appName, image string) error {