-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.platform.app.yaml
46 lines (44 loc) · 1.22 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
# Install an eZ Platform
name: app
type: php:7.2
build:
flavor: "none"
relationships:
database: 'mysqldb:user'
variables:
env:
SYMFONY_ENV: prod
web:
locations:
"/":
root: "ezplatform/web"
passthru: "/app.php"
expires: 600
disk: 2048
mounts:
"/ezplatform/var/cache": "shared:files/cache"
"/ezplatform/var/logs": "shared:files/logs"
"/ezplatform/web/var": "shared:files/files"
"/ezplatform/var/sessions": "shared:files/sessions"
hooks:
build: |
set -e
composer create-project ezsystems/ezplatform --prefer-dist --no-progress --no-interaction --no-scripts
curl -o tests/platform.sh/wrap.php https://raw.githubusercontent.com/Plopix/symfony-bundle-app-wrapper/master/wrap-bundle.php
WRAP_APP_DIR=./ezplatform php tests/platform.sh/wrap.php
cd ezplatform
composer update --lock
deploy: |
set -e
cd ezplatform
bin/console ezplatform:install clean
mv var/cache/$SYMFONY_ENV var/cache/oldcache
bin/console cache:clear
post_deploy: |
set -e
rm -rf ezplatform/var/cache/oldcache
runtime:
extensions:
- xsl
- imagick
- readline