aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update.sh')
-rw-r--r--scripts/update.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/update.sh b/scripts/update.sh
index 96a48217..45e93f36 100644
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -2,6 +2,8 @@
2# You can execute this file to update wallabag 2# You can execute this file to update wallabag
3# eg: `sh update.sh prod` 3# eg: `sh update.sh prod`
4 4
5COMPOSER_COMMAND='composer'
6
5DIR="${BASH_SOURCE%/*}" 7DIR="${BASH_SOURCE%/*}"
6if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi 8if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
7. "$DIR/require.sh" 9. "$DIR/require.sh"
@@ -13,5 +15,5 @@ rm -rf var/cache/*
13git fetch origin 15git fetch origin
14git fetch --tags 16git fetch --tags
15git checkout $TAG --force 17git checkout $TAG --force
16SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist 18SYMFONY_ENV=$ENV $COMPOSER_COMMAND install --no-dev -o --prefer-dist
17php bin/console cache:clear --env=$ENV 19php bin/console cache:clear --env=$ENV