-
Notifications
You must be signed in to change notification settings - Fork 0
/
.platform.app.yaml
88 lines (79 loc) · 1.93 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
name: pimcore
type: php:7.2
relationships:
database: "pimcore_mysqldb:pimcore_admin"
build:
flavor: "none"
runtime:
extensions:
- bz2
- iconv
- dom
- simplexml
- exif
- intl
- opcache
- imagick
variables:
env:
PIMCORE_INSTALL_ADMIN_USERNAME: "admin"
PIMCORE_INSTALL_ADMIN_PASSWORD: "admin"
mounts:
"/var": "shared:files/var"
"/web/var": "shared:files/web-var"
"/web/bundles": "shared:files/web-bundles"
web:
locations:
'/':
root: web
passthru: "/app.php"
allow: true
rules:
^/videos/(?<resource>.*)$:
passthru: "/var/assets/videos/$resource"
^/img/(?<resource>.*)$:
passthru: "/var/assets/img/$resource"
^/static/(?<resource>.*)$:
passthru: "/web/static/$resource"
disk: 2048
hooks:
build: |
composer install --no-ansi --no-progress --prefer-dist --no-scripts
if [ -d var ];then
if [ ! -d tmp_var ];then
mkdir tmp_var
fi
rsync -r var/ tmp_var/
fi
if [ -d web/var ];then
if [ ! -d web/tmp_var ];then
mkdir -p web/tmp_var
fi
rsync -r web/var/ web/tmp_var/
fi
if [ -d web/bundles ];then
if [ ! -d web/tmp_bundles ];then
mkdir -p web/tmp_bundles
fi
rsync -r web/bundles/ web/tmp_bundles/
fi
deploy: |
set -e
if [ -d tmp_var ];then
rsync -r tmp_var/ var/
fi
if [ -d web/tmp_var ];then
rsync -r web/tmp_var/ web/var/
fi
if [ -d web/tmp_bundles ];then
rsync -r web/tmp_bundles/ web/bundles/
fi
if [ ! -f web/var/.platform.installed ]; then
bin/console doctrine:query:sql "ALTER DATABASE CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
touch web/var/.platform.installed
fi
vendor/bin/pimcore-install --no-interaction --ignore-existing-config --no-debug
crons:
pimcore_cron:
spec: "*/5 * * * *"
cmd: "bin/console maintenance"