-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.platform.app.yaml
54 lines (48 loc) · 1.66 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
# 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.4
build:
flavor: composer
# The hooks that will be performed when the package is deployed.
hooks:
deploy: |
set -e
php artisan cache:clear
php artisan route:clear
php artisan route:cache
php artisan config:clear
php artisan config:cache
php artisan migrate --force
# 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: "mysqldb:mysql"
# The size of the persistent disk of the application (in MB).
disk: 2048
# The mounts that will be performed when the package is deployed.
mounts:
"storage/app/public": "shared:files/public"
"storage/framework/views": "shared:files/views"
"storage/framework/sessions": "shared:files/sessions"
"storage/framework/cache": "shared:files/cache"
"storage/framework/": "shared:files/framework"
"storage/logs": "shared:files/logs"
"bootstrap/cache": "shared:files/bootstrap/cache"
"/.config": "shared:files/config"
"storage" : "shared:files/storage"
"public/upload/users" : "shared:files/uploads/users"
"storage/app/temp": "shared:files/storage/app/temp"
# The configuration of app when it is exposed to the web.
web:
locations:
"/":
root: "public"
index:
- index.php
allow: true
passthru: "/index.php"