From 364de2966b5833482f6187aee91cb7a2befa02f6 Mon Sep 17 00:00:00 2001 From: platformsh-devrel Date: Wed, 24 Jan 2024 15:31:48 +0000 Subject: [PATCH 1/3] Synching platformsh-templates/wordpress-composer (ee7eda67db024b943d267b2405d73f9afeda4708). Updates templates/wordpress-composer/files/.platform.app.yaml. --- templates/wordpress-composer/files/.platform.app.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/wordpress-composer/files/.platform.app.yaml b/templates/wordpress-composer/files/.platform.app.yaml index 9ef453cf5..d555e30d4 100644 --- a/templates/wordpress-composer/files/.platform.app.yaml +++ b/templates/wordpress-composer/files/.platform.app.yaml @@ -107,6 +107,11 @@ mounts: source: local source_path: "uploads" +# More information: https://docs.platform.sh/create-apps/app-reference.html#extensions +runtime: + extensions: + - blackfire + ######################################################################################################################## ## ## ## This source operation is part of the Platform.sh process of updating and maintaining our collection of templates. ## From 726c41a9621629d001d47464819ef796df71f545 Mon Sep 17 00:00:00 2001 From: platformsh-devrel Date: Tue, 19 Mar 2024 12:54:33 +0000 Subject: [PATCH 2/3] Synching platformsh-templates/wordpress-composer (2d03efe635fec4166750c05e546b13b844c25867). Updates templates/wordpress-composer/files/.platform.app.yaml. --- templates/wordpress-composer/files/.platform.app.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wordpress-composer/files/.platform.app.yaml b/templates/wordpress-composer/files/.platform.app.yaml index d555e30d4..d57acbd7f 100644 --- a/templates/wordpress-composer/files/.platform.app.yaml +++ b/templates/wordpress-composer/files/.platform.app.yaml @@ -31,7 +31,7 @@ hooks: set -e # Copy manually-provided plugins into the plugins directory. # This allows manually-provided and composer-provided plugins to coexist. - rsync -a plugins/* wordpress/wp-content/plugins/ + rsync -a plugins/ wordpress/wp-content/plugins/ # The deploy hook is run after the app container has been started, but before it has started accepting requests. # More information: https://docs.platform.sh/create-apps/hooks/hooks-comparison.html#deploy-hook From d129166bcdad2e8726daea34cb196a5103518122 Mon Sep 17 00:00:00 2001 From: platformsh-devrel Date: Thu, 11 Dec 2025 21:30:43 +0000 Subject: [PATCH 3/3] Synching platformsh-templates/wordpress-composer (1132b8ba490103925f7012695f17d52dba88940f). Updates templates/wordpress-composer/files/.platform.app.yaml. --- .../files/.platform.app.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/templates/wordpress-composer/files/.platform.app.yaml b/templates/wordpress-composer/files/.platform.app.yaml index d57acbd7f..92bb30fa5 100644 --- a/templates/wordpress-composer/files/.platform.app.yaml +++ b/templates/wordpress-composer/files/.platform.app.yaml @@ -36,12 +36,16 @@ hooks: # The deploy hook is run after the app container has been started, but before it has started accepting requests. # More information: https://docs.platform.sh/create-apps/hooks/hooks-comparison.html#deploy-hook deploy: | - # Flushes the object cache which might have changed between current production and newly deployed changes - wp cache flush - # Runs the WordPress database update procedure in case core is being updated with the newly deployed changes - wp core update-db - # Runs all cron events that are due now and may have come due during the build+deploy procedure - wp cron event run --due-now + if [ $(wp core is-installed) ]; then + # Flushes the object cache which might have changed between current production and newly deployed changes + wp cache flush + # Runs the WordPress database update procedure in case core is being updated with the newly deployed changes + wp core update-db + # Runs all cron events that are due now and may have come due during the build+deploy procedure + wp cron event run --due-now + else + echo "WordPress is not installed. Skipping deploy steps." + fi # 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 @@ -107,7 +111,7 @@ mounts: source: local source_path: "uploads" -# More information: https://docs.platform.sh/create-apps/app-reference.html#extensions +# More information: https://docs.platform.sh/create-apps/app-reference.html#extensions runtime: extensions: - blackfire