Skip to content

Commit 4999fbd

Browse files
committed
Support custom startup command
1 parent 1c775e3 commit 4999fbd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.diploi/helm/app.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@ spec:
5959
- containerPort: 8000
6060
{{- if eq .Values.stage "development" }}
6161
workingDir: /app{{ .Values.folder }}
62+
{{- with .Values.containerCommands.developmentStart }}
63+
command:
64+
- /bin/sh
65+
- -c
66+
- |
67+
{{ . | nindent 14 }}
68+
{{- end }}
69+
{{- else }}
70+
{{- with .Values.containerCommands.productionStart }}
71+
command:
72+
- /bin/sh
73+
- -c
74+
- |
75+
{{ . | nindent 14 }}
76+
{{- end }}
6277
{{- end }}
6378
env:
6479
{{- range .Values.env }}

0 commit comments

Comments
 (0)