-
Notifications
You must be signed in to change notification settings - Fork 0
/
.platform.app.yaml
81 lines (60 loc) · 1.75 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: app
type: php:7.4
relationships:
database: "mydatabase:mysql"
redis: "myredis:redis"
runtime:
extensions:
- apcu
- mbstring
- sodium
- iconv
- ctype
- pdo_mysql
- redis
#variables:
# php:
# # uncomment on PHP 7.4+
# #opcache.preload: /app/config/preload.php
build:
flavor: none
disk: 512
web:
locations:
"/":
root: "public"
expires: 1h
passthru: "/index.php"
mounts:
"/var": { source: local, source_path: var }
"/public/upload/media/default": { source: local, source_path: default }
hooks:
build: |
set -x -e
curl -fs https://get.symfony.com/cloud/configurator | (>&2 bash)
(>&2 symfony-build)
deploy: |
set -x -e
(>&2 symfony-deploy)
crons:
mendeley_download:
# Download LiveGeneShare publications from Mendeley every Sunday at noon
spec: '0 12 * * 0'
cmd: |
if [ "$SYMFONY_BRANCH" = "master" ]; then
croncape symfony console app:mendeley:download
fi
mendeley_new_publications_notifier:
# Notify LiveGene members about new publications at Mendeley every Monday at 3am
spec: '0 3 * * 1'
cmd: |
if [ "$SYMFONY_BRANCH" = "master" ]; then
croncape symfony console app:mendeley:new-publications-notifier
fi
organisation_logo_check_status:
# Check the status code of the organisation logos every Sunday and Wednesday midnight
spec: '0 0 * * 0,3'
cmd: |
if [ "$SYMFONY_BRANCH" = "master" ]; then
croncape symfony console app:organisation:check-logo-status
fi