-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.platform.app.yaml
93 lines (77 loc) · 2.02 KB
/
.platform.app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: app
type: php:8.1
dependencies:
php:
composer/composer: "^2"
runtime:
extensions:
- iconv
- dom
- simplexml
- exif
- opcache
- imagick
- fileinfo
- sodium
- redis
variables:
php:
memory_limit: 128M
opcache.preload: config/preload.php
env:
APP_ENV: "prod"
build:
flavor: none
disk: 2048
web:
locations:
"/":
root: "public"
expires: 1h
passthru: "/index.php"
mounts:
"/var":
source: "local"
source_path: "var"
"/public/var":
source: "local"
source_path: "public_var"
"/public/pimcore":
source: "local"
source_path: "public_pimcore"
"/public/bundles":
source: "local"
source_path: "public_bundles"
"/config/local":
source: "local"
source_path: "config_local"
relationships:
database: "db:mysql"
redis: "cache:redis"
hooks:
build: |
set -e
curl -fsS https://raw.githubusercontent.com/platformsh/snippets/main/src/install-phpredis.sh | { bash /dev/fd/3 5.1.1 ; } 3<&0
curl -sS https://platform.sh/cli/installer | php
composer install --no-ansi --no-progress --prefer-dist --no-scripts
deploy: |
set -e
if [ ! -f public/var/.platform.installed ]; then
./installer.sh
touch public/var/.platform.installed
fi
./bin/console cache:clear
crons:
pimcore_maintenance:
spec: "*/5 * * * *"
commands:
start: "bin/console pimcore:maintenance --async"
messenger_consume:
spec: "*/5 * * * *"
commands:
start: "bin/console messenger:consume pimcore_core pimcore_maintenance pimcore_image_optimize --time-limit=300"
source:
operations:
auto-update:
command: |
curl -fsS https://raw.githubusercontent.com/platformsh/source-operations/main/setup.sh | { bash /dev/fd/3 sop-autoupdate; } 3<&0