Skip to content

Commit b907ee1

Browse files
authored
Merge pull request #1034 from kmala/bug
fix(healthcheck): update healthchecks for non default process type
2 parents 689df78 + 8408c1f commit b907ee1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rootfs/api/models/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def _scale_pods(self, scale_types):
418418
if port:
419419
envs['PORT'] = port
420420

421-
healthcheck = release.config.get_healthcheck().get('scale_type', {})
421+
healthcheck = release.config.get_healthcheck().get(scale_type, {})
422422
if not healthcheck and scale_type in ['web', 'cmd']:
423423
healthcheck = release.config.get_healthcheck().get('web/cmd', {})
424424

@@ -509,7 +509,7 @@ def deploy(self, release, force_deploy=False):
509509
if port:
510510
envs['PORT'] = port
511511

512-
healthcheck = release.config.get_healthcheck().get('scale_type', {})
512+
healthcheck = release.config.get_healthcheck().get(scale_type, {})
513513
if not healthcheck and scale_type in ['web', 'cmd']:
514514
healthcheck = release.config.get_healthcheck().get('web/cmd', {})
515515

0 commit comments

Comments
 (0)