Skip to content

Commit c9f96d7

Browse files
Support custom folder
1 parent 7b1a798 commit c9f96d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.diploi/helm/app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
image: {{ .Values.images.app }}
4040
imagePullPolicy: Always
4141
command: ['npm', 'install']
42-
workingDir: /app/{{ .Values.identifier }}
42+
workingDir: {{ if .Values.folder }}/app{{ .Values.folder }}{{ else }}/app/{{ .Values.identifier }}{{ end }}
4343
volumeMounts:
4444
- name: app-mount
4545
mountPath: /app
@@ -51,7 +51,7 @@ spec:
5151
ports:
5252
- containerPort: 3000
5353
{{- if eq .Values.stage "development" }}
54-
workingDir: /app/{{ .Values.identifier }}
54+
workingDir: {{ if .Values.folder }}/app{{ .Values.folder }}{{ else }}/app/{{ .Values.identifier }}{{ end }}
5555
{{- end }}
5656
env:
5757
{{- range .Values.env }}

0 commit comments

Comments
 (0)