Skip to content

Commit 76a1bbf

Browse files
committed
This might deploy the new PHP docs to SymfonyCloud
1 parent bdf8b29 commit 76a1bbf

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.symfony.cloud.yaml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
name: symfonydocs
66

77
# The toolstack used to build the application.
8-
type: "python:3.7"
8+
type: "php:7.2"
99

1010
# The configuration of app when it is exposed to the web.
1111
web:
1212
# The public directory of the app, relative to its root.
13-
document_root: "/_build/html"
13+
document_root: "/_build/output"
1414
index_files:
1515
- index.html
1616
whitelist:
@@ -40,19 +40,9 @@ web:
4040
# The size of the persistent disk of the application (in MB).
4141
disk: 512
4242

43-
# Build time dependencies.
44-
dependencies:
45-
python:
46-
virtualenv: 15.1.0
47-
4843
# The hooks that will be performed when the package is deployed.
4944
hooks:
5045
build: |
51-
virtualenv .virtualenv
52-
. .virtualenv/bin/activate
53-
# SymfonyCloud currently sets PIP_USER=1.
54-
export PIP_USER=
55-
pip install pip==9.0.1 wheel==0.29.0
56-
pip install -r _build/.requirements.txt
57-
find .virtualenv -type f -name "*.rst" -delete
58-
make -C _build html
46+
cd _build
47+
composer install --prefer-dist --no-progress
48+
php build.php

0 commit comments

Comments
 (0)