Skip to content

Commit

Permalink
platform-api: multisite disables all migration handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Nov 12, 2022
1 parent 06a30e7 commit c58b068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/platform-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: ushahidi-platform-api
version: 0.0.1-alpha.10
version: 0.0.1-alpha.11
icon: https://github.ushahidi.org/helm-charts/icon.png
5 changes: 3 additions & 2 deletions charts/platform-api/templates/api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ spec:
- { name: ENABLE_PLATFORM_TASKS, value: "false" }
- { name: ENABLE_QUEUE_LISTEN, value: "false" }
{{- if not (.Values.config.multisite.enabled | default false) }}
- { name: RUN_PLATFORM_MIGRATIONS, value: "true" }
- { name: DB_MIGRATIONS_HANDLED, value: "true" }
{{- else }}
- { name: RUN_PLATFORM_MIGRATIONS, value: "false" }
- { name: DB_MIGRATIONS_HANDLED, value: "false" }
{{- end }}
- { name: RUN_PLATFORM_MIGRATIONS, value: "true" }
{{- if or (.Values.config.dotenv) (.Values.config.dotenv_secret) }}
- { name: DOTENV_PATH, value: "/var/www/.cfg/dotenv/.env" }
{{- end }}
Expand Down

0 comments on commit c58b068

Please sign in to comment.