From ded9e69de04e2f725cc9ccc7f60acb259ad50f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Vieilledent?= Date: Wed, 25 Oct 2023 10:28:43 +0200 Subject: [PATCH] Replace `local` mount source by `storage` for Upsun --- platformifier/templates/upsun/.upsun/config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platformifier/templates/upsun/.upsun/config.yaml b/platformifier/templates/upsun/.upsun/config.yaml index 4899fa6..14d44b5 100644 --- a/platformifier/templates/upsun/.upsun/config.yaml +++ b/platformifier/templates/upsun/.upsun/config.yaml @@ -35,13 +35,14 @@ applications: {{ range $key, $value := .Mounts -}} "{{ $key }}": {{ range $key, $value := $value }} + {{- if eq $key "source" -}}{{- $value = $value | replace "local" "storage" -}}{{- end -}} {{- $key }}: "{{ $value }}" {{ end }} {{ end -}} {{- else -}} # mounts: - # "/.cache": # Represents the path in the app. - # source: "local" # "local" sources are unique to the app, while "service" sources can be shared among apps. + # "/storage": # Represents the path in the app. + # source: "shared" # "shared" sources are unique to the app, but shared among instances of the app. "service" sources can be shared among apps. # source_path: "cache" # The subdirectory within the mounted disk (the source) where the mount should point. {{- end }}