From 035f82b9cbfc478c8679390071836f61087325f0 Mon Sep 17 00:00:00 2001 From: Paul Gilzow Date: Fri, 2 Dec 2022 14:35:43 -0600 Subject: [PATCH 1/3] Updates wordpress-composer, gatsby-composer, and backdrop template to php v8.1 --- templates/backdrop/files/.platform.app.yaml | 2 +- templates/gatsby-wordpress/files/wordpress/.platform.app.yaml | 2 +- templates/wordpress-composer/files/.platform.app.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/backdrop/files/.platform.app.yaml b/templates/backdrop/files/.platform.app.yaml index 7b6b82e9d..cf0253b0c 100644 --- a/templates/backdrop/files/.platform.app.yaml +++ b/templates/backdrop/files/.platform.app.yaml @@ -4,7 +4,7 @@ name: 'app' # The type key specifies the language and version for your application. -type: 'php:7.4' +type: 'php:8.1' # On PHP, there are multiple build flavors available. Pretty much everyone # except Drupal 7 and Backdrop users will want the composer flavor. diff --git a/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml b/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml index 4d2d80ead..6db8113a2 100644 --- a/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml +++ b/templates/gatsby-wordpress/files/wordpress/.platform.app.yaml @@ -5,7 +5,7 @@ name: wordpress # The runtime the application uses. -type: "php:7.4" +type: 'php:8.1' # Configuration of the build of the application. build: diff --git a/templates/wordpress-composer/files/.platform.app.yaml b/templates/wordpress-composer/files/.platform.app.yaml index c6528dada..a77983ab4 100644 --- a/templates/wordpress-composer/files/.platform.app.yaml +++ b/templates/wordpress-composer/files/.platform.app.yaml @@ -5,7 +5,7 @@ name: app # The runtime the application uses. -type: "php:7.4" +type: 'php:8.1' # Configuration of the build of the application. build: From 36c1f3aedfc0213f84ccf3294d8c99a6c757225b Mon Sep 17 00:00:00 2001 From: Paul Gilzow Date: Fri, 2 Dec 2022 14:38:43 -0600 Subject: [PATCH 2/3] WIP: Updates remaining PHP 7.4 templates to 8.1 but these are all failing their builds --- templates/drupal8-multisite/files/.platform.app.yaml | 2 +- templates/drupal8-opigno/files/.platform.app.yaml | 2 +- templates/drupal8/files/.platform.app.yaml | 2 +- templates/gatsby-drupal/files/drupal/.platform.app.yaml | 2 +- templates/nextcloud/files/.platform.app.yaml | 2 +- templates/pimcore/files/.platform.app.yaml | 2 +- templates/typo3/files/.platform.app.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/drupal8-multisite/files/.platform.app.yaml b/templates/drupal8-multisite/files/.platform.app.yaml index 65651beac..e48ea8fea 100644 --- a/templates/drupal8-multisite/files/.platform.app.yaml +++ b/templates/drupal8-multisite/files/.platform.app.yaml @@ -7,7 +7,7 @@ name: 'drupal' # The runtime the application uses. -type: 'php:7.4' +type: 'php:8.1' dependencies: php: diff --git a/templates/drupal8-opigno/files/.platform.app.yaml b/templates/drupal8-opigno/files/.platform.app.yaml index bf31e2dfd..3a26413c7 100644 --- a/templates/drupal8-opigno/files/.platform.app.yaml +++ b/templates/drupal8-opigno/files/.platform.app.yaml @@ -7,7 +7,7 @@ name: 'drupal' # The runtime the application uses. -type: 'php:7.4' +type: 'php:8.1' dependencies: php: diff --git a/templates/drupal8/files/.platform.app.yaml b/templates/drupal8/files/.platform.app.yaml index 8cb019653..b1ae5f4a2 100644 --- a/templates/drupal8/files/.platform.app.yaml +++ b/templates/drupal8/files/.platform.app.yaml @@ -7,7 +7,7 @@ name: 'drupal' # The runtime the application uses. -type: 'php:7.4' +type: 'php:8.1' dependencies: php: diff --git a/templates/gatsby-drupal/files/drupal/.platform.app.yaml b/templates/gatsby-drupal/files/drupal/.platform.app.yaml index 98817ab1d..5d483dfe5 100644 --- a/templates/gatsby-drupal/files/drupal/.platform.app.yaml +++ b/templates/gatsby-drupal/files/drupal/.platform.app.yaml @@ -7,7 +7,7 @@ name: 'drupal' # The runtime the application uses. -type: 'php:7.4' +type: 'php:8.1' dependencies: php: diff --git a/templates/nextcloud/files/.platform.app.yaml b/templates/nextcloud/files/.platform.app.yaml index ac1ee1623..e735f1728 100644 --- a/templates/nextcloud/files/.platform.app.yaml +++ b/templates/nextcloud/files/.platform.app.yaml @@ -5,7 +5,7 @@ name: app # The runtime the application uses. -type: "php:7.4" +type: 'php:8.1' runtime: extensions: diff --git a/templates/pimcore/files/.platform.app.yaml b/templates/pimcore/files/.platform.app.yaml index c9b0606e4..7beb11a13 100644 --- a/templates/pimcore/files/.platform.app.yaml +++ b/templates/pimcore/files/.platform.app.yaml @@ -7,7 +7,7 @@ name: app # The runtime the application uses. -type: php:7.4 +type: 'php:8.1' # The relationships of the application with services or other applications. # diff --git a/templates/typo3/files/.platform.app.yaml b/templates/typo3/files/.platform.app.yaml index d806765c2..9d0df4e45 100644 --- a/templates/typo3/files/.platform.app.yaml +++ b/templates/typo3/files/.platform.app.yaml @@ -7,7 +7,7 @@ name: app # The runtime the application uses. -type: php:7.4 +type: 'php:8.1' dependencies: php: From 35534a5f20aed827d698d1b1f3af3282507b80ed Mon Sep 17 00:00:00 2001 From: Paul Gilzow Date: Tue, 6 Dec 2022 10:54:24 -0600 Subject: [PATCH 3/3] Corrects regression in cron syntax --- templates/nextcloud/files/.platform.app.yaml | 6 ++++-- templates/pimcore/files/.platform.app.yaml | 3 ++- templates/typo3/files/.platform.app.yaml | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/nextcloud/files/.platform.app.yaml b/templates/nextcloud/files/.platform.app.yaml index e735f1728..ea3555e1b 100644 --- a/templates/nextcloud/files/.platform.app.yaml +++ b/templates/nextcloud/files/.platform.app.yaml @@ -109,8 +109,10 @@ crons: # Run NextClouds's cron tasks every 5 minutes. cron: spec: '*/5 * * * *' - commands: 'cd src ; php cron.php' + commands: + start: 'cd src ; php cron.php' preview: spec: '*/10 * * * *' - commands: './occ preview:pre-generate' + commands: + start: './occ preview:pre-generate' diff --git a/templates/pimcore/files/.platform.app.yaml b/templates/pimcore/files/.platform.app.yaml index 7beb11a13..035b790bc 100644 --- a/templates/pimcore/files/.platform.app.yaml +++ b/templates/pimcore/files/.platform.app.yaml @@ -104,7 +104,8 @@ hooks: crons: pimcore_cron: spec: "*/5 * * * *" - commands: "bin/console maintenance" + commands: + start: "bin/console maintenance" source: operations: diff --git a/templates/typo3/files/.platform.app.yaml b/templates/typo3/files/.platform.app.yaml index 9d0df4e45..c68536d8f 100644 --- a/templates/typo3/files/.platform.app.yaml +++ b/templates/typo3/files/.platform.app.yaml @@ -211,7 +211,8 @@ crons: # Run TYPO3's Scheduler tasks every 5 minutes. typo3: spec: "*/5 * * * *" - commands: "vendor/bin/typo3 scheduler:run" + commands: + start: "vendor/bin/typo3 scheduler:run" source: operations: