Skip to content

Commit

Permalink
Change server storage path and use empty dir.
Browse files Browse the repository at this point in the history
This is needed for docker data as db_status file should be removed in order to run migrations..
  • Loading branch information
AMecea committed Dec 10, 2024
1 parent 66f2df7 commit d3f26b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/twentycrm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: A Helm chart for https://github.com/twentyhq/twenty
name: twentycrm
version: 0.1.0
version: 0.1.1
7 changes: 5 additions & 2 deletions charts/twentycrm/templates/deployment-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ spec:
- name: twentycrm-server-data
persistentVolumeClaim:
claimName: {{ .Release.Name }}-server-pvc
- name: twentycrm-docker-data
emptyDir: {}

initContainers:
# if it's not ready at first start the db setup fail badly
- name: wait-db-ready
Expand Down Expand Up @@ -77,8 +80,8 @@ spec:
{{- toYaml .Values.server.resources | indent 12 | printf "\n%s" }}
volumeMounts:
- mountPath: /app/docker-data
name: twentycrm-server-data
- mountPath: /app/.local-storage
name: twentycrm-docker-data
- mountPath: /app/packages/twenty-server/.local-storage
name: twentycrm-server-data
#livenessProbe:
# httpGet:
Expand Down

0 comments on commit d3f26b6

Please sign in to comment.