Ensured entities metadata cache is cleared during installation and docker start-up

This commit is contained in:
Alejandro Celaya
2020-04-06 20:52:33 +02:00
parent afca8b2a62
commit a9a53a9652
3 changed files with 28 additions and 2 deletions

View File

@@ -12,6 +12,9 @@ php bin/cli db:migrate -n -q
echo "Generating proxies..."
php vendor/doctrine/orm/bin/doctrine.php orm:generate-proxies -n -q
echo "Clearing entities cache..."
php vendor/doctrine/orm/bin/doctrine.php orm:clear-cache:metadata -n -q
# When restarting the container, swoole might think it is already in execution
# This forces the app to be started every second until the exit code is 0
until php vendor/mezzio/mezzio-swoole/bin/mezzio-swoole start; do sleep 1 ; done