feat: extract procfile when fetching command as necessary
This commit is contained in:
@@ -162,6 +162,12 @@ func TriggerProcfileExtract(appName string, image string) error {
|
|||||||
|
|
||||||
func TriggerProcfileGetCommand(appName string, processType string, port int) error {
|
func TriggerProcfileGetCommand(appName string, processType string, port int) error {
|
||||||
procfilePath := getProcfilePath(appName)
|
procfilePath := getProcfilePath(appName)
|
||||||
|
if !common.FileExists(procfilePath) {
|
||||||
|
image := common.GetDeployingAppImageName(appName, "", "")
|
||||||
|
if err := common.PlugnTrigger("procfile-extract", []string{appName, image}...); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
command, err := getProcfileCommand(procfilePath, processType, port)
|
command, err := getProcfileCommand(procfilePath, processType, port)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user