-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy path.symfony.cloud.yaml
57 lines (44 loc) Β· 1.11 KB
/
.symfony.cloud.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
name: afsy
type: php:8.0
runtime:
extensions:
- apcu
- mbstring
build:
flavor: none
web:
locations:
"/":
root: "public"
expires: 1h
passthru: "/index.php"
disk: 1024
mounts:
"/var": { source: local, source_path: var }
hooks:
build: |
set -x -e
curl -s https://get.symfony.com/cloud/configurator | (>&2 bash)
(>&2 symfony-build)
deploy: |
set -x -e
(>&2 symfony-deploy)
crons:
snapshot:
# everyday at 5AM
spec: 0 5 * * *
cmd: |
# only snapshot the master environment, aka production
if [ "$SYMFONY_BRANCH" = master ]; then
croncape symfony env:snapshot:create --no-wait
fi
renewcert:
# Force a redeploy at 10 am (UTC) on the 1st and 15th of every month.
# for the master branch, aka production
spec: '0 10 1,15 * *'
cmd: |
if [ "$SYMFONY_BRANCH" = master ]; then
croncape symfony redeploy --no-wait
fi
relationships:
database: "database:mysql"