Skip to content

Commit

Permalink
Replace local mount source by storage for Upsun
Browse files Browse the repository at this point in the history
  • Loading branch information
lolautruche committed Oct 26, 2023
1 parent b49392e commit ded9e69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions platformifier/templates/upsun/.upsun/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit ded9e69

Please sign in to comment.