Skip to content

Commit 16a5003

Browse files
committed
Optimize whitespace control
1 parent 74441a9 commit 16a5003

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

upsun/10-sulu-upsun.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ template: |
9292
{{ $service.Name }}: "{{ $service.Name }}:{{ with $service.Endpoint }}{{ . }}{{ else }}{{ $service.Type }}{{ end }}"
9393
{{- end }}
9494
{{- end }}
95-
{{- end }}
95+
96+
{{ end -}}
9697
9798
hooks:
9899
build: |
@@ -126,11 +127,12 @@ template: |
126127
commands:
127128
# Consume "async" messages (as configured in the routing section of config/packages/messenger.yaml)
128129
start: symfony console --time-limit=3600 --memory-limit=64M messenger:consume async
129-
{{- end }}
130+
131+
{{ end -}}
130132
131133
extra_files:
132134
".upsun/varnish.vcl": |
133-
# Varnish configuration for Sulu CMS on Upsun
135+
# Varnish configuration for Sulu CMS on upsun
134136
# This configuration handles cache invalidation and Sulu-specific requirements
135137
136138
import std;

upsun/15-symfony-flex-upsun.yaml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ template: |
99
"https://{all}/": { type: upstream, upstream: "{{.Slug}}:http" }
1010
"http://{all}/": { type: redirect, to: "https://{all}/" }
1111
12-
services: {{ if not $.Services -}}{}{{ end }}
13-
{{ range $service := $.Services -}}
12+
services: {{- if not $.Services }} {}{{ end }}
13+
{{- range $service := $.Services }}
1414
{{ $service.Name }}:
1515
type: {{ $service.Type }}{{ if $service.Version }}:{{ $service.Version }}{{ end }}
16-
17-
{{ end }}
16+
{{- end }}
1817
1918
applications:
2019
{{.Slug}}:
@@ -25,17 +24,19 @@ template: |
2524
2625
runtime:
2726
extensions:
28-
{{ range $ext := $.PHPExtensions -}}
29-
{{- if php_extension_available $ext $.PhpVersion -}}
27+
{{- range $ext := $.PHPExtensions }}
28+
{{- if php_extension_available $ext $.PhpVersion }}
3029
- {{ $ext }}
31-
{{ end -}}
30+
{{- end }}
3231
{{- end }}
3332
3433
{{ if php_at_least "7.4" -}}
3534
variables:
3635
php:
3736
opcache.preload: config/preload.php
38-
{{- end }}
37+
38+
{{ end -}}
39+
3940
build:
4041
flavor: none
4142
@@ -55,10 +56,12 @@ template: |
5556
5657
{{ if $.Services -}}
5758
relationships:
58-
{{ range $service := $.Services -}}
59+
{{- range $service := $.Services }}
5960
{{ $service.Name }}: "{{ $service.Name }}:{{ $service.Type }}"
60-
{{ end -}}
61-
{{- end }}
61+
{{- end }}
62+
63+
{{ end -}}
64+
6265
hooks:
6366
build: |
6467
set -x -e
@@ -91,4 +94,5 @@ template: |
9194
commands:
9295
# Consume "async" messages (as configured in the routing section of config/packages/messenger.yaml)
9396
start: symfony console --time-limit=3600 --memory-limit=64M messenger:consume async
94-
{{- end }}
97+
98+
{{ end -}}

0 commit comments

Comments
 (0)