diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-11 21:01:30 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-11 21:01:30 +0200 |
commit | e4cf672ccf61689ba28c2e89fc55f83167800b18 (patch) | |
tree | 5dc22c97797bdcdd0a3d2a7e182410f04a748c1e /scripts/update.sh | |
parent | e57df5611fe82ce61a71d51c762ee9296f18c3ac (diff) | |
parent | dbe94e73a9eaf3acb250812913b0303b35d01a2e (diff) | |
download | wallabag-e4cf672ccf61689ba28c2e89fc55f83167800b18.tar.gz wallabag-e4cf672ccf61689ba28c2e89fc55f83167800b18.tar.zst wallabag-e4cf672ccf61689ba28c2e89fc55f83167800b18.zip |
Merge remote-tracking branch 'origin/master' into 2.2
Diffstat (limited to 'scripts/update.sh')
-rw-r--r-- | scripts/update.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/update.sh b/scripts/update.sh new file mode 100644 index 00000000..b920a829 --- /dev/null +++ b/scripts/update.sh | |||
@@ -0,0 +1,13 @@ | |||
1 | #! /usr/bin/env bash | ||
2 | # You can execute this file to update wallabag | ||
3 | # eg: `sh update.sh prod` | ||
4 | |||
5 | ENV=$1 | ||
6 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
7 | |||
8 | rm -rf var/cache/* | ||
9 | git fetch origin | ||
10 | git fetch --tags | ||
11 | git checkout $TAG --force | ||
12 | SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist | ||
13 | php bin/console cache:clear --env=$ENV | ||