Added update.sh for easier code updating

Signed-off-by: Gergely POLONKAI (W00d5t0ck) <gergely@polonkai.eu>
This commit is contained in:
Gergely POLONKAI (W00d5t0ck) 2012-09-03 23:38:10 +02:00
parent 39b92fcf6c
commit 4a07b2e120

13
update.sh Executable file
View File

@ -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