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 45
45
cron :
46
46
symfony :
47
47
spec : ' * */2 * * *'
48
- cmd : ./bin/reloadFixtures.sh $PWD
48
+ cmd : ./bin/reloadFixtures.sh $PWD true
49
49
50
50
# The size of the persistent disk of the application (in MB).
51
51
disk : 2048
63
63
sed -i 's@%kernel.root_dir%/../var/app.sqlite@/tmp/app.sqlite@' app/config/parameters.yml
64
64
bin/console --env=prod assets:install -n --no-debug
65
65
bin/console --env=prod assetic:dump -n --no-debug
66
- deploy : ./bin/reloadFixtures.sh $PWD
66
+ deploy : ./bin/reloadFixtures.sh $PWD true
67
67
68
68
runtime :
69
69
extensions :
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
DIR=$1
4
+ PROD=$2 || false
4
5
run () {
5
6
comment=" +++ " $1 " +++"
6
7
command=$2
@@ -21,10 +22,10 @@ run () {
21
22
}
22
23
23
24
CACHE_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
27
26
run " Remove cache directory:" " rm -rf /var/cache/prod"
27
+ else
28
+ run " Remove cache directory:" " rm -rf ${DIR} var/cache/prod"
28
29
fi
29
30
run " Drop and init dbal:" " php ${DIR} bin/console --env=prod doctrine:phpcr:init:dbal --drop --force -n -vvv"
30
31
run " 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