Skip to content

Commit 553978c

Browse files
author
Gabriel Monroy
committed
fix(controller): only scale web=1 if procfile has web entry
1 parent 2984581 commit 553978c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controller/api/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ def post_save(self, build, created=False):
347347
build.app.deploy(self.release)
348348
# if the structure is empty (first build)
349349
if build.app.structure == {}:
350-
# if there is a procfile, scale by web=1
351-
if build.procfile:
350+
# if there is procfile with a web worker, scale by web=1
351+
if 'web' in build.procfile:
352352
build.app.structure = {'web': 1}
353353
# otherwise assume dockerfile, scale cmd=1
354354
else:

0 commit comments

Comments
 (0)