Skip to content

Commit 0ccc566

Browse files
GuGussweaverryan
GuGuss
authored andcommitted
Prepare Platform.sh configuration files.
1 parent 8cec82b commit 0ccc566

File tree

3 files changed

+109
-0
lines changed

3 files changed

+109
-0
lines changed

Diff for: .platform.app.yaml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# This file describes an application. You can have multiple applications
2+
# in the same project.
3+
4+
# The name of this app. Must be unique within a project.
5+
name: php
6+
7+
# The toolstack used to build the application.
8+
type: "php"
9+
10+
build:
11+
flavor: "composer"
12+
13+
# The configuration of app when it is exposed to the web.
14+
web:
15+
# The public directory of the app, relative to its root.
16+
document_root: "/_build/html"
17+
index_files:
18+
- index.html
19+
whitelist:
20+
- \.html$
21+
22+
# CSS and Javascript.
23+
- \.css$
24+
- \.js$
25+
- \.hbs$
26+
27+
# image/* types.
28+
- \.gif$
29+
- \.jpe?g$
30+
- \.png$
31+
- \.tiff?$
32+
- \.wbmp$
33+
- \.ico$
34+
- \.jng$
35+
- \.bmp$
36+
- \.svgz?$
37+
38+
# audio/* types.
39+
- \.midi?$
40+
- \.mpe?ga$
41+
- \.mp2$
42+
- \.mp3$
43+
- \.m4a$
44+
- \.ra$
45+
- \.weba$
46+
47+
# video/* types.
48+
- \.3gpp?$
49+
- \.mp4$
50+
- \.mpe?g$
51+
- \.mpe$
52+
- \.ogv$
53+
- \.mov$
54+
- \.webm$
55+
- \.flv$
56+
- \.mng$
57+
- \.asx$
58+
- \.asf$
59+
- \.wmv$
60+
- \.avi$
61+
62+
# application/ogg.
63+
- \.ogx$
64+
65+
# application/x-shockwave-flash.
66+
- \.swf$
67+
68+
# application/java-archive.
69+
- \.jar$
70+
71+
# fonts types.
72+
- \.ttf$
73+
- \.eot$
74+
- \.woff$
75+
- \.otf$
76+
77+
# robots.txt.
78+
- /robots\.txt$
79+
80+
# The size of the persistent disk of the application (in MB).
81+
disk: 2048
82+
83+
# Build time dependencies.
84+
dependencies:
85+
python:
86+
sphinx: "1.2.3"
87+
88+
# The hooks that will be performed when the package is deployed.
89+
hooks:
90+
build: |
91+
pip install git+https://github.com/fabpot/sphinx-php.git
92+
make html

Diff for: .platform/routes.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
http://www.{default}/:
2+
to: http://{default}/
3+
type: redirect
4+
http://{default}/:
5+
cache:
6+
cookies:
7+
- '*'
8+
default_ttl: 0
9+
enabled: true
10+
headers:
11+
- Accept
12+
- Accept-Language
13+
ssi:
14+
enabled: false
15+
type: upstream
16+
upstream: php:php

Diff for: .platform/services.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Keeping this file empty to not deploy unused services.

0 commit comments

Comments
 (0)