-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.platform.app.yaml
More file actions
102 lines (85 loc) · 2.44 KB
/
.platform.app.yaml
File metadata and controls
102 lines (85 loc) · 2.44 KB
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
92
93
94
95
96
97
98
99
100
101
102
# 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:8.4
# Set the timezone for the application.
timezone: 'America/New_York'
dependencies:
php:
composer/composer: '^2'
#runtime:
# extensions:
# - redis
build:
flavor: composer
variables:
env:
N_PREFIX: /app/.global
# The hooks that will be performed when the package is deployed.
hooks:
build: |
set -e
# install a specific NodeJS version https://github.com/platformsh/snippets/
# -v requested version
# -y install Yarn
# curl -fsS https://raw.githubusercontent.com/platformsh/snippets/main/src/install_node.sh | { bash /dev/fd/3 -v 17.5 -y; } 3<&0
# uncomment next line to build assets deploying
# npm install && npm run production
deploy: |
set -e
php artisan optimize:clear
php artisan optimize
php artisan view: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: "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/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"
"/storage":
root: "storage/app/public"
scripts: false
source:
operations:
auto-update:
command: |
curl -fsS https://raw.githubusercontent.com/platformsh/source-operations/main/setup.sh | { bash /dev/fd/3 sop-autoupdate; } 3<&0