We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e3c47d commit 5289e5bCopy full SHA for 5289e5b
bin/reloadFixtures.sh
@@ -21,7 +21,11 @@ run () {
21
}
22
23
CACHE_DIR=${DIR}var/cache/prod
24
-#run "Remove cache directory:" "rm -rf ${CACHE_DIR}"
+if [ -d "${CACHE_DIR}" ]; then
25
+ run "Remove cache directory:" "rm -rf ${CACHE_DIR}"
26
+else
27
+ run "Remove cache directory:" "rm -rf /var/cache/prod"
28
+fi
29
run "Drop and init dbal:" "php ${DIR}bin/console --env=prod doctrine:phpcr:init:dbal --drop --force -n -vvv"
30
run "Init repositories:" "php ${DIR}bin/console --env=prod doctrine:phpcr:repository:init -n -vvv"
31
run "Load date fixtures:" "php ${DIR}bin/console --env=prod doctrine:phpcr:fixtures:load -n -vvv"
0 commit comments