From 3fc9bef62316bde8d74a2f2c4e338480ca6b1a50 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Mon, 8 Mar 2021 04:43:53 +0100 Subject: [PATCH] Hello cloud --- .platform.app.yaml | 27 +++++++++++++++++++++++++++ .platform/routes.yaml | 12 ++++++++++++ .platform/services.yaml | 0 3 files changed, 39 insertions(+) create mode 100644 .platform.app.yaml create mode 100644 .platform/routes.yaml create mode 100644 .platform/services.yaml diff --git a/.platform.app.yaml b/.platform.app.yaml new file mode 100644 index 0000000..007c8f6 --- /dev/null +++ b/.platform.app.yaml @@ -0,0 +1,27 @@ +# 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:7.4 + +# 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 `:`. +#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. +web: + locations: + "/": + # The public directory of the app, relative to its root. + root: "web" + # The front-controller script to send non-static requests to. + passthru: "/index.php" diff --git a/.platform/routes.yaml b/.platform/routes.yaml new file mode 100644 index 0000000..1c6790f --- /dev/null +++ b/.platform/routes.yaml @@ -0,0 +1,12 @@ +# The routes of the project. +# +# Each route describes how an incoming URL is going +# to be processed by Platform.sh. + +"https://{default}/": + type: upstream + upstream: "app:http" + +"https://www.{default}/": + type: redirect + to: "https://{default}/" \ No newline at end of file diff --git a/.platform/services.yaml b/.platform/services.yaml new file mode 100644 index 0000000..e69de29