Skip to content

Commit

Permalink
Update applications.yaml
Browse files Browse the repository at this point in the history
Improve fastly installation to not run in Dev projects when they have environment_type production
  • Loading branch information
jonathan-shopware authored Jun 26, 2024
1 parent 820b263 commit e6526aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shopware/paas-meta/6.6/.platform/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6526aa

Please sign in to comment.