forked from lando/lando
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.platform.app.yaml
47 lines (41 loc) · 968 Bytes
/
.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
name: metrics
type: nodejs:10
dependencies:
nodejs:
pm2: "^2.0.0"
yarn: "*"
web:
commands:
start: "PM2_HOME=$PLATFORM_APP_DIR/run pm2 start server.js --no-daemon"
locations:
"/public":
passthru: false
root: "public"
allow: true
rules:
'\.png$':
allow: true
expires: -1
mounts:
"/run": "shared:files/run"
disk: 1500
hooks:
build: |
set -e
yarn install
curl -sS https://platform.sh/cli/installer | php
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