This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.platform.app.yaml
86 lines (73 loc) · 2.86 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
78
79
80
81
82
83
84
85
86
# 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 runtime the application uses.
type: "php:7.2"
# Configuration of the build of this application.
build:
flavor: composer
# The build-time dependencies of the app.
dependencies:
php:
drush/drush: "9.0.0-alpha1"
nodejs:
grunt-cli: "~0.1.13"
yarn: "*"
# 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:main"
# redis: "redis:redis"
# The configuration of app when it is exposed to the web.
web:
# Specific parameters for different URL prefixes.
locations:
"/":
# The folder to serve static assets for this location from.
# (Relative to the application root.)
root: "web"
# How long to allow static assets from this location to be cached.
# (Can be a time or -1 for no caching. Times can be suffixed with
# "ms" (milliseconds), "s" (seconds), "m" (minutes), "h" (hours),
# "d" (days), "w" (weeks), "M" (months, 30d) or "y" (years, 365d).)
expires: -1
# Whether to forward disallowed and missing resources from this
# location to the application.
# (Can be true, false or a URI path string.)
passthru: "/index.php"
# The size of the persistent disk of the application (in MB).
disk: 7000
# The mounts that will be performed when the package is deployed.
mounts:
"web/sites/default/files": "shared:files/files"
"web/sites/default/config": "shared:files/config"
"/tmp": "shared:files/tmp"
"/private": "shared:files/private"
# The hooks executed at various points in the lifecycle of the application.
hooks:
build: |
unset NPM_CONFIG_PREFIX
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | dash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm current
nvm install 8.0.0
set -e
composer grunt:dependencies
composer grunt:build
composer campaign:scaffold
cp -f /app/ci/platform/settings.php /app/web/sites/default/settings.php
cp /app/ci/platform/settings.platformsh.php /app/web/sites/default/settings.platformsh.php
# We run deploy hooks after your application has been deployed and started.
deploy: |
set -e
composer campaign:install
# The configuration of scheduled execution.
crons:
drupal:
spec: "*/20 * * * *"
cmd: "cd web;drush core-cron"