-
Notifications
You must be signed in to change notification settings - Fork 123
/
Copy path.platform.app.yaml
53 lines (46 loc) · 1.06 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
name: php-fig-website
type: php:8.1
build:
flavor: composer
web:
locations:
"/":
root: "output_dev"
index:
- "index.html"
headers:
Permissions-Policy: 'interest-cohort=()'
expires: 300s
scripts: true
allow: false
rules:
\.(css|js|gif|jpe?g|png|ttf|eot|woff2?|otf|html|ico|xml|svg?)$:
allow: true
^/(robots|humans)\.txt$:
allow: true
disk: 1024
dependencies:
nodejs:
node-sass: '^4.9.4'
php:
composer/composer: '^2'
hooks:
build: |
set -e
cat /etc/*release
php -v
ruby -v
curl -sS https://platform.sh/cli/installer | php
echo "cachebust: $PLATFORM_PROJECT_ENTROPY" >> app/config/sculpin_site.yml
bin/install.sh
bin/build-php.sh
bin/build-sass.sh
bin/html-proofer.sh
crons:
renewcert:
# Force a redeploy at 6 am (UTC) on the 14th and 28th of every month.
spec: '0 6 14,28 * *'
cmd: |
if [ "$PLATFORM_BRANCH" = master ]; then
platform redeploy --yes
fi