-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.platform.app.yaml
56 lines (54 loc) · 1.26 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
# Core config
name: app
type: nodejs:10
build:
flavor: none
web:
commands:
# Run a no-op process that uses no CPU resources, since this is a static site.
start: sleep infinity
locations:
"/":
root: "_book"
index:
- "index.html"
expires: 300s
passthru: false
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
^/sitemap\.xml$:
allow: true
disk: 2048
dependencies:
nodejs:
yarn: "*"
# Automation
hooks:
build: |
set -e
yarn install
yarn run build
curl -sS https://platform.sh/cli/installer | php
# The configuration of scheduled execution.
crons:
snapshot:
# Take a snapshot automatically every night at 3 am (UTC).
spec: '0 3 * * *'
cmd: |
if [ "$PLATFORM_BRANCH" = master ]; then
/app/.platformsh/bin/platform snapshot:create --yes --no-wait
fi
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