Skip to content

Commit

Permalink
feat: add fastly simplication
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Oct 21, 2024
1 parent bf3f172 commit 69b3a88
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions shopware/paas-meta/6.6/.platform/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
fi
rsync -av "${PLATFORM_APP_DIR}/vendor/dompdf/dompdf/lib/fonts" "${PLATFORM_APP_DIR}/var/dompdf/fontDir"
if [ "$FASTLY_ENV_TYPE" != "live" ] && [ "$FASTLY_ENV_TYPE" != "stage" ]; then
unset FASTLY_API_TOKEN
fi
php vendor/bin/shopware-deployment-helper run --skip-theme-compile --skip-asset-install

Check failure on line 94 in shopware/paas-meta/6.6/.platform/applications.yaml

View workflow job for this annotation

GitHub Actions / call-qa / Run checks

Indendation must be a multiple of 4 spaces
if [ "$PLATFORM_ENVIRONMENT_TYPE" != production ]; then
Expand All @@ -109,19 +113,6 @@
bin/console cache:pool:clear cache.object
fi
echo "==================================================="
echo "SETUP FASTLY AND CLEAR OPCACHE"
echo "==================================================="
# 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
else
echo "setup-fastly.sh script not found"
fi
fi
# Send USR2 signal to php-fpm to clear the opcache
pkill -f -USR2 -u web php-fpm
post_deploy: |
Expand Down

0 comments on commit 69b3a88

Please sign in to comment.