Skip to content

Commit da2c232

Browse files
committed
Pre-warm Symfony cache
1 parent 7313cb1 commit da2c232

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/setup.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ install_symfony () {
4040
setup bash -c "\
4141
composer create-project symfony/symfony-demo symfony $symfony_version --no-interaction --working-dir=/code/app && \
4242
composer update symfony/ux-twig-component:2.18.1 --working-dir=/code/app/symfony && \
43-
composer dump-autoload --classmap-authoritative --working-dir=/code/app/symfony"
43+
composer dump-autoload --classmap-authoritative --working-dir=/code/app/symfony && \
44+
/bin/console cache:clear && \
45+
/bin/console cache:warmup"
4446
fi
4547

4648
if [[ "$INFRA_ENVIRONMENT" == "aws" ]]; then
@@ -78,7 +80,7 @@ install_wordpress () {
7880
--admin_user=wordpress --admin_password=wordpress [email protected]
7981

8082
elif [[ "$INFRA_RUNNER" == "docker" ]]; then
81-
echo "TODO to implement..."
83+
echo "Not implemented yet..."
8284
fi
8385
fi
8486
}

0 commit comments

Comments
 (0)