aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update.sh
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-27 10:09:43 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-27 10:09:43 +0200
commitc4d9a8d6d0db2be5c502e257bbeb963e3870d521 (patch)
tree3707e21a1f0a4074bd9353efee7798582eeac18e /scripts/update.sh
parent9998c725330b4a99d6d12df60ac8234052e80b6a (diff)
downloadwallabag-c4d9a8d6d0db2be5c502e257bbeb963e3870d521.tar.gz
wallabag-c4d9a8d6d0db2be5c502e257bbeb963e3870d521.tar.zst
wallabag-c4d9a8d6d0db2be5c502e257bbeb963e3870d521.zip
Usage of composer.phar if it's found
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