-
Notifications
You must be signed in to change notification settings - Fork 0
/
.platform.app.yaml
67 lines (51 loc) · 1.41 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
name: app
type: php:8.3
runtime:
extensions:
- pdo_pgsql
- sodium
#variables:
# php:
# # uncomment on PHP 7.4+
# #opcache.preload: config/preload.php
build:
flavor: none
dependencies:
ruby:
"wkhtmltopdf-binary": "> 0.0"
disk: 512
web:
locations:
"/":
root: "public"
expires: 1h
passthru: "/index.php"
workers:
messenger:
# PHP background workers usually don't require much CPU. See
# https://symfony.com/doc/current/cloud/cookbooks/resources_allocation.html
# for more information
size: XS
resources:
base_memory: 64 # Keep in sync with the `memory-limit` flag value
memory_ratio: 128
commands:
# Don't forget to update your receiver name(s)
start: symfony console --time-limit=3600 --memory-limit=64M messenger:consume async
mounts:
"/var": { source: local, source_path: var }
relationships:
database:
hooks:
build: |
set -x -e
curl -fs https://get.symfony.com/cloud/configurator | bash
# php-ext-install ctype X.Y.Z
# php-ext-install iconv X.Y.Z
NODE_VERSION=18 symfony-build
php bin/console ckeditor:install --clear=drop --tag=4.22.1
php bin/console assets:install
wkhtmltopdf -V
deploy: |
set -x -e
symfony-deploy