-
Notifications
You must be signed in to change notification settings - Fork 3
/
.platform.app.yaml
44 lines (36 loc) · 1.44 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
# This file describes an application. You can have multiple applications
# in the same project.
# The name of this app. Must be unique within a project.
name: php
# The toolstack used to build the application.
toolstack: "php:drupal"
# 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: "mysql:mysql"
solr: "solr:solr"
redis: "redis:redis"
# The configuration of app when it is exposed to the web.
web:
# The public directory of the app, relative to its root.
document_root: "/"
# The front-controller script to send non-static requests to.
passthru: "/index.php"
# The size of the persistent disk of the application (in MB).
disk: 2048
# The mounts that will be performed when the package is deployed.
mounts:
"/public/sites/default/files": "shared:files/files"
"/tmp": "shared:files/tmp"
"/private": "shared:files/private"
# The hooks executed at various points in the lifecycle of the application.
hooks:
# We run deploy hook after your application has been deployed and started.
deploy: "cd /app/public ; drush -y updatedb"
# The configuration of scheduled execution.
crons:
drupal:
spec: "*/20 * * * *"
cmd: "cd public ; drush core-cron"