From e40ff754755126ee9113a9c0a7d6dda62a97f858 Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Sat, 8 Dec 2018 10:57:57 +0000 Subject: [PATCH] Migrate PR builds to SymfonyCloud --- .platform/routes.yaml | 16 ---------------- .platform.app.yaml => .symfony.cloud.yaml | 7 ++----- .symfony/routes.yaml | 11 +++++++++++ {.platform => .symfony}/services.yaml | 0 4 files changed, 13 insertions(+), 21 deletions(-) delete mode 100644 .platform/routes.yaml rename .platform.app.yaml => .symfony.cloud.yaml (93%) create mode 100644 .symfony/routes.yaml rename {.platform => .symfony}/services.yaml (100%) diff --git a/.platform/routes.yaml b/.platform/routes.yaml deleted file mode 100644 index f99889ccec3..00000000000 --- a/.platform/routes.yaml +++ /dev/null @@ -1,16 +0,0 @@ -http://www.{default}/: - to: http://{default}/ - type: redirect -http://{default}/: - cache: - cookies: - - '*' - default_ttl: 0 - enabled: true - headers: - - Accept - - Accept-Language - ssi: - enabled: false - type: upstream - upstream: symfonydocs:php diff --git a/.platform.app.yaml b/.symfony.cloud.yaml similarity index 93% rename from .platform.app.yaml rename to .symfony.cloud.yaml index 66f6a036b73..faa3c24780e 100644 --- a/.platform.app.yaml +++ b/.symfony.cloud.yaml @@ -5,10 +5,7 @@ name: symfonydocs # The toolstack used to build the application. -type: "php" - -build: - flavor: "composer" +type: "python:3.7" # The configuration of app when it is exposed to the web. web: @@ -53,7 +50,7 @@ hooks: build: | virtualenv .virtualenv . .virtualenv/bin/activate - # Platform.sh currently sets PIP_USER=1. + # SymfonyCloud currently sets PIP_USER=1. export PIP_USER= pip install pip==9.0.1 wheel==0.29.0 pip install -r _build/.requirements.txt diff --git a/.symfony/routes.yaml b/.symfony/routes.yaml new file mode 100644 index 00000000000..5726a95c62d --- /dev/null +++ b/.symfony/routes.yaml @@ -0,0 +1,11 @@ +https://{default}/: + cache: + cookies: + - '*' + default_ttl: 0 + enabled: true + headers: + - Accept + - Accept-Language + type: upstream + upstream: symfonydocs:http diff --git a/.platform/services.yaml b/.symfony/services.yaml similarity index 100% rename from .platform/services.yaml rename to .symfony/services.yaml