Fixed update.sh

It now clears the cache before dumping assets.

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely 2012-08-18 09:26:40 +02:00
parent 972a57bf2b
commit de00f53cdf
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
#! /bin/sh #! /bin/sh
git pull && \ git pull && \
(app/console cache:clear --env=prod || rm -rf `dirname $0`/app/cache/prod) && \
(app/console cache:clear || rm -rf `dirname $0`/app/cache/dev) && \
app/console assets:install && \ app/console assets:install && \
app/console assetic:dump --env=prod && \ app/console assetic:dump --env=prod && \
app/console cache:clear --env=prod && app/console cache:clear
exit 0 exit 0