File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4545cron :
4646 symfony :
4747 spec : ' * */2 * * *'
48- cmd : ./bin/reloadFixtures.sh $PWD
48+ cmd : ./bin/reloadFixtures.sh $PWD true
4949
5050# The size of the persistent disk of the application (in MB).
5151disk : 2048
6363 sed -i 's@%kernel.root_dir%/../var/app.sqlite@/tmp/app.sqlite@' app/config/parameters.yml
6464 bin/console --env=prod assets:install -n --no-debug
6565 bin/console --env=prod assetic:dump -n --no-debug
66- deploy : ./bin/reloadFixtures.sh $PWD
66+ deploy : ./bin/reloadFixtures.sh $PWD true
6767
6868runtime :
6969 extensions :
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33DIR=$1
4+ PROD=$2 || false
45run () {
56 comment=" +++ " $1 " +++"
67 command=$2
@@ -21,10 +22,10 @@ run () {
2122}
2223
2324CACHE_DIR=${DIR} var/cache/prod
24- if [ -d " ${CACHE_DIR} " ]; then
25- run " Remove cache directory:" " rm -rf ${CACHE_DIR} "
26- else
25+ if [ " ${PROD} " ]; then
2726 run " Remove cache directory:" " rm -rf /var/cache/prod"
27+ else
28+ run " Remove cache directory:" " rm -rf ${DIR} var/cache/prod"
2829fi
2930run " Drop and init dbal:" " php ${DIR} bin/console --env=prod doctrine:phpcr:init:dbal --drop --force -n -vvv"
3031run " Init repositories:" " php ${DIR} bin/console --env=prod doctrine:phpcr:repository:init -n -vvv"
You can’t perform that action at this time.
0 commit comments