We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffd08c6 commit 2cc0c4cCopy full SHA for 2cc0c4c
1 file changed
rootfs/api/models/app.py
@@ -153,8 +153,11 @@ def _get_entrypoint(self, container_type):
153
"""
154
Return the kubernetes "container command" to be sent off to the scheduler.
155
156
- entrypoint = ['/bin/sh', '-c']
+ entrypoint = []
157
release = self.release_set.filter(failed=False).latest()
158
+ if release is not None and release.build is not None:
159
+ if release.build.procfile and container_type in release.build.procfile:
160
+ entrypoint = ['/bin/sh', '-c']
161
if self._get_stack(release) == "buildpack":
162
if container_type in release.build.procfile:
163
entrypoint = [container_type]
0 commit comments