-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.platform.app.yaml
128 lines (110 loc) · 3.06 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# This file describes an application. You can have multiple applications
# in the same project.
# The name of this app. Must be unique within a project.
name: mymagento
# The toolstack used to build the application.
type: php:5.6
build:
flavor: composer
# Enable extensions required by Magento 2
runtime:
extensions:
- redis
- xsl
- json
# The relationships of the application with services or other applications.
# The left-hand side is the name of the relationship as it will be exposed
# to the application in the PLATFORM_RELATIONSHIPS variable. The right-hand
# side is in the form `<service name>:<endpoint name>`.
relationships:
database: "mysql:mysql"
solr: "solr:solr"
redis: "redis:redis"
# The configuration of app when it is exposed to the web.
web:
# The public directory of the app, relative to its root.
document_root: "/"
# The front-controller script to send non-static requests to.
passthru: "/index.php"
whitelist:
# CSS and Javascript.
- \.css$
- \.js$
- \.map$
- \.hbs$
# image/* types.
- \.gif$
- \.jpe?g$
- \.png$
- \.tiff?$
- \.wbmp$
- \.ico$
- \.jng$
- \.bmp$
- \.svgz?$
# audio/* types.
- \.midi?$
- \.mpe?ga$
- \.mp2$
- \.mp3$
- \.m4a$
- \.ra$
- \.weba$
# video/* types.
- \.3gpp?$
- \.mp4$
- \.mpe?g$
- \.mpe$
- \.ogv$
- \.mov$
- \.webm$
- \.flv$
- \.mng$
- \.asx$
- \.asf$
- \.wmv$
- \.avi$
# application/ogg.
- \.ogx$
# application/x-shockwave-flash.
- \.swf$
# application/java-archive.
- \.jar$
# fonts types.
- \.ttf$
- \.eot$
- \.woff$
- \.otf$
# document types
- \.htm$
- \.html$
# robots.txt.
- /robots\.txt$
# The size of the persistent disk of the application (in MB).
disk: 2048
# The mounts that will be performed when the package is deployed.
mounts:
"/public/var": "shared:files/var"
"/public/app/etc": "shared:files/etc"
"/public/pub": "shared:files/pub"
# The hooks executed at various points in the lifecycle of the application.
hooks:
# We run build hooks before your application has been packaged.
build: |
cd ~/public
/usr/bin/php ./vendor/platformsh/magento2-configuration/magento-build.php
# We run deploy hook after your application has been deployed and started.
deploy: |
cd ~//public
/usr/bin/php ./vendor/platformsh/magento2-configuration/magento-deploy.php
# Default Magento 2 cron jobs
crons:
cronrun:
spec: "*/1 * * * *"
cmd: "cd ~/public ; /usr/bin/php bin/magento cron:run"
cron:
spec: "*/1 * * * *"
cmd: "cd ~/public ; /usr/bin/php update/cron.php"
cronsetup:
spec: "*/1 * * * *"
cmd: "cd ~/public ; /usr/bin/php bin/magento setup:cron:run"