forked from platformsh/example-moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.platform.app.yaml
55 lines (45 loc) · 1.56 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
# This file describes an application. You can have multiple applications
# in the same project.
#
# See https://docs.platform.sh/user_guide/reference/platform-app-yaml.html
# The name of this app. Must be unique within a project.
name: app
# The runtime the application uses.
type: php:7.0
# Configuration of the build of this application.
build:
flavor: composer
# Include extra PHP extensions.
runtime:
extensions:
- xmlrpc
# The relationships of the application with services or other applications.
#
# The left-hand side is the name of the relationship as it will be exposed
# to the application in the PLATFORM_RELATIONSHIPS variable. The right-hand
# side is in the form `<service name>:<endpoint name>`.
relationships:
database: mysqldb:mysql
# The configuration of app when it is exposed to the web.
web:
locations:
'/':
root: 'public'
passthru: /index.php
allow: true
'/uploads':
root: 'public'
allow: false
# The size of the persistent disk of the application (in MB).
disk: 2048
# The 'mounts' describe writable, persistent filesystem mounts in the application. The keys are
# directory paths, relative to the application root. The values are strings such as
# 'shared:files/NAME', where NAME is just a unique name for the mount.
mounts:
'moodledata': 'shared:files/moodledata'
# The configuration of scheduled task execution.
crons:
default:
# Moodle wants to run its cron every minute, but Platform.sh only allows ever 5 minutes max.
spec: '*/5 * * * *'
cmd: 'php ./public/admin/cli/cron.php >/dev/null'