-
Notifications
You must be signed in to change notification settings - Fork 1
/
.platform.app.yaml
62 lines (54 loc) · 1.78 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
# The name of this app. Must be unique within a project.
name: app
# The runtime the application uses. The 'type' key defines the base container
# image that will be used to run the application. There is a separate base
# container image for each primary language for the application,
# in multiple versions. Check the PHP documentation
# (https://docs.platform.sh/languages/php.html#supported-versions)
# to find the supported versions for the 'php' type.
type: 'php:7.3'
build:
flavor: composer
# The following block defines a single writable directory, 'web/uploads'
# The 'source' specifies where the writable mount is. The 'local' source
# indicates that the mount point will point to a local directory on the
# application container. The 'source_path' specifies the subdirectory
# from within the source that the mount should point at.
mounts:
'/var/cache':
source: local
source_path: cache
'/var/log':
source: local
source_path: log
'/var/sessions':
source: local
source_path: sessions
# The size of the persistent disk of the application (in MB).
disk: 2048
# 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: 'db:mysql'
variables:
env:
APP_ENV: 'prod'
APP_DEBUG: 0
hooks:
build: |
set -e
bin/console assets:install --no-debug
bin/console cache:clear
deploy: |
set -e
bin/console assets:install --symlink --relative public
bin/console cache:clear
bin/console doctrine:migrations:migrate -n
web:
locations:
'/':
root: "public"
passthru: "/index.php"