-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.platform.app.yaml
More file actions
65 lines (55 loc) · 2.23 KB
/
.platform.app.yaml
File metadata and controls
65 lines (55 loc) · 2.23 KB
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
# .platform.app.yaml
# The name of this application, which must be unique within a project.
name: 'backdrop4good'
# The type key specifies the language and version for your application.
type: 'php:7.0'
# On PHP, there are multiple build flavors available. Pretty much everyone
# except Drupal 7 users will want the composer flavor.
build:
flavor: 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: 'database:mysql'
# The hooks that will be triggered when the package is deployed.
hooks:
# Build hooks can modify the application files on disk but not access any services like databases.
build: |
set -e
# Install Drush integration for Backdrop
mkdir -p .drush/commands
cd .drush/commands
wget https://github.com/backdrop-contrib/drush/archive/1.x-0.x.zip
unzip 1.x-0.x.zip -d backdrop
deploy: |
cd /app/web
drush cc drush
drush updb -y
drush bcim -y
drush cc all
# 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:
'/web/files': 'shared:files/web-files'
'/config/active': 'shared:files/config/active'
# The configuration of the application when it is exposed to the web.
web:
locations:
'/':
# The public directory of the application relative to its root.
root: 'web'
# The front-controller script which determines where to send
# non-static requests.
passthru: '/index.php'
# Allow uploaded files to be served, but do not run scripts.
# Missing files get mapped to the front controller above.
'/files':
root: 'web/files'
scripts: false
allow: true
#passthru: '/app.php'