This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
forked from monicahq/monica
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.platform.app.yaml
91 lines (81 loc) · 2.24 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
87
88
89
90
91
# 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: app
# The type of the application to build.
type: php:7.3
build:
flavor: none
runtime:
extensions:
- apcu
- gmp
- redis
- sodium
# The hooks that will be performed when the package is deployed.
hooks:
build: |
set -evx
composer install --no-interaction --no-suggest --no-dev
composer require --update-no-dev platformsh/laravel-bridge
mkdir -p ${SENTRY_ROOT:-/app/vendor/bin}
curl -sL https://sentry.io/get-cli/ | INSTALL_DIR=${SENTRY_ROOT:-/app/vendor/bin} bash
deploy: |
set -evx
rm -f bootstrap/cache/*.php
php artisan monica:update --force --skip-storage-link -vvv
# 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"
rediscache: "cache:redis"
redissession: "cache:redis"
# The size of the persistent disk of the application (in MB).
disk: 512
# The mounts that will be performed when the package is deployed.
mounts:
"storage/app/public":
source: local
source_path: "public"
"storage/app/temp":
source: local
source_path: "temp"
"storage/framework/views":
source: local
source_path: "views"
"storage/framework/sessions":
source: local
source_path: "sessions"
"storage/framework/cache":
source: local
source_path: "cache"
"storage/logs":
source: local
source_path: "logs"
"bootstrap/cache":
source: local
source_path: "cache"
"/.config":
source: local
source_path: "config"
# The configuration of app when it is exposed to the web.
web:
locations:
"/":
root: "public"
index:
- index.php
allow: true
passthru: "/index.php"
workers:
queue:
size: S
commands:
start: |
php artisan queue:work --sleep=3 --tries=3 --queue=default,migration
crons:
scheduler:
spec: '*/5 * * * *'
cmd: 'php artisan schedule:run -v'