forked from drupalcommerce/commerce-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.platform.app.yaml
35 lines (35 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
name: docs
type: php:7.2
disk: 2048
web:
locations:
"/":
root: ""
passthru: /index.php
expires: 1h
mounts:
'/cache': 'shared:files/cache'
'/logs': 'shared:files/logs'
'/images': 'shared:files/images'
'/assets': 'shared:files/assets'
'/user/data': 'shared:files/user-data'
'/backup': 'shared:files/backup'
'/tmp': 'shared:files/tmp'
hooks:
build: |
curl -fsS https://platform.sh/cli/installer | php
crons:
backup:
# Trigger a backup at 5 am (UTC) every day.
spec: '0 5 * * *'
cmd: |
if [ "$PLATFORM_BRANCH" = master ]; then
platform backup:create --yes --no-wait
fi
renewcert:
# Force a redeploy at 7 am (UTC) on the 1st and 15th of every month.
spec: '0 7 1,15 * *'
cmd: |
if [ "$PLATFORM_BRANCH" = master ]; then
platform redeploy --yes --no-wait
fi