forked from lando/lando
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.platform.app.yaml
52 lines (45 loc) · 1.17 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
# 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: app
# The toolstack used to build the application.
type: php:7.0
build:
flavor: none
# The configuration of app when it is exposed to the web.
web:
locations:
"/":
root: "_book"
index:
- "index.html"
expires: 300s
scripts: true
allow: false
rules:
\.(css|js|gif|jpe?g|png|ttf|eot|woff2?|otf|html|ico|svg?)$:
allow: true
^/robots\.txt$:
allow: true
search_index\.json$:
allow: true
# The size of the persistent disk of the application (in MB).
disk: 2048
# Build time dependencies.
dependencies:
nodejs:
yarn: "*"
# The hooks that will be performed when the package is deployed.
hooks:
build: |
yarn
yarn docs
cp docs/images/favicon.ico _book/gitbook/images/favicon.ico
crons:
renewcert:
# Force a redeploy at 9 am (UTC) on the 14th of every month.
spec: '0 9 14 * *'
cmd: |
if [ "$PLATFORM_BRANCH" = master ]; then
/app/.platformsh/bin/platform redeploy --yes --no-wait
fi