From e6526aa2208a5b0cfd868076bd2ee657d62f1f2e Mon Sep 17 00:00:00 2001 From: jonathan-shopware <136731159+jonathan-shopware@users.noreply.github.com> Date: Wed, 26 Jun 2024 08:49:23 +0200 Subject: [PATCH] Update applications.yaml Improve fastly installation to not run in Dev projects when they have environment_type production --- shopware/paas-meta/6.6/.platform/applications.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shopware/paas-meta/6.6/.platform/applications.yaml b/shopware/paas-meta/6.6/.platform/applications.yaml index 112fb3e..080172b 100644 --- a/shopware/paas-meta/6.6/.platform/applications.yaml +++ b/shopware/paas-meta/6.6/.platform/applications.yaml @@ -174,7 +174,8 @@ echo "===================================================" echo "SETUP FASTLY AND CLEAR OPCACHE" echo "===================================================" - if [ "$PLATFORM_ENVIRONMENT_TYPE" = "production" ] || [ "$PLATFORM_ENVIRONMENT_TYPE" = "stage" ]; then + # If Fastly should be enabled on stage or live instance it is required to add it as env variable (works with "live" or "stage" as value) + if [ "$FASTLY_ENV_TYPE" = "live" ] || [ "$FASTLY_ENV_TYPE" = "stage" ]; then if [ -e bin/setup-fastly.sh ]; then echo "Running setup-fastly.sh script" ./bin/setup-fastly.sh