From de00f53cdf47d012bb5b16c62d0ec054f0b97df4 Mon Sep 17 00:00:00 2001 From: Polonkai Gergely Date: Sat, 18 Aug 2012 09:26:40 +0200 Subject: [PATCH] Fixed update.sh It now clears the cache before dumping assets. Signed-off-by: Gergely Polonkai --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 5deee70..7bcd3f0 100755 --- a/update.sh +++ b/update.sh @@ -1,9 +1,9 @@ #! /bin/sh 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 assetic:dump --env=prod && \ -app/console cache:clear --env=prod && app/console cache:clear - exit 0