infinito/administration/clear.sh
2019-03-29 18:44:22 +01:00

8 lines
313 B
Bash

#!/bin/bash
(
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" &&
docker-compose exec php php /var/www/symfony/bin/console cache:clear &&
docker-compose exec php php /var/www/symfony/bin/console cache:clear --env=prod &&
docker-compose exec php php /var/www/symfony/bin/console cache:clear --env=test
)