From 4a07b2e12032e63d799d4879c018c529e732b8cd Mon Sep 17 00:00:00 2001 From: "Gergely POLONKAI (W00d5t0ck)" Date: Mon, 3 Sep 2012 23:38:10 +0200 Subject: [PATCH] Added update.sh for easier code updating Signed-off-by: Gergely POLONKAI (W00d5t0ck) --- update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 update.sh diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..d1017c3 --- /dev/null +++ b/update.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +git pull && \ +git submodule init && \ +git submodule update && \ +(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 && \ +exit 0 + +exit 1 +