Repository navigation
Expand file tree
/
Copy path.platform.app.yaml
More file actions
67 lines (57 loc) · 2 KB
/
Copy path.platform.app.yaml
File metadata and controls
67 lines (57 loc) · 2 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
# 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.3'
# Set the timezone for the application.
timezone: 'America/New_York'
# Indicate that we want to use composer2, (leave out if you want composer1)
dependencies:
php:
composer/composer: '^2'
# 'database' is the relationship name, 'mariadb' refers to the service name, 'main' is the default database
relationships:
database: "database:mysql"
# The hooks that will be performed when the package is deployed.
hooks:
build: |
set -e
composer install --no-dev --optimize-autoloader --no-interaction
# The post-install-cmd script will handle plugin dependencies
deploy: |
set -e
# 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"
# The size of the persistent disk of the application (in MB).
disk: 2048
# The configuration of app when it is exposed to the web.
# .platform.app.yaml (Corrected version)
web:
locations:
"/":
root: ""
allow: true
scripts: true
index:
- index.php
passthru: "/yourls-loader.php"
"/admin/auth":
root: "user/plugins/yourls-saml/public"
allow: true
scripts: true
"/healthyourlsdatabase":
root: ""
scripts: true
allow: true
index:
- healthchecker.php
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