kekrozsak/update.sh
Polonkai Gergely de00f53cdf Fixed update.sh
It now clears the cache before dumping assets.

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
2012-08-18 09:26:40 +02:00

10 lines
255 B
Bash
Executable File

#! /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 && \
exit 0