Skip to content

Commit 27a6eb7

Browse files
committed
Add custom startup command for development and production
1 parent fc232b3 commit 27a6eb7

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.diploi/helm/app.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,20 @@ spec:
5151
ports:
5252
- containerPort: 3000
5353
{{- if eq .Values.stage "development" }}
54-
workingDir: /app{{ .Values.folder }}
54+
workingDir: /app{{ .Values.folder }}
55+
{{- with .Values.containerCommands.developmentStart }}
56+
command:
57+
- /bin/sh
58+
- -c
59+
- "{{ . }}"
60+
{{- end }}
61+
{{- else }}
62+
{{- with .Values.containerCommands.productionStart }}
63+
command:
64+
- /bin/sh
65+
- -c
66+
- "{{ . }}"
67+
{{- end }}
5568
{{- end }}
5669
env:
5770
{{- range .Values.env }}

0 commit comments

Comments
 (0)