aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update.sh
diff options
context:
space:
mode:
authorPaulino Michelazzo <paulino@michelazzo.com.br>2016-10-18 22:48:23 +0200
committerPaulino Michelazzo <paulino@michelazzo.com.br>2016-10-18 22:48:23 +0200
commit99731f0bb1f6fd2815eeb9af504ce86df927657b (patch)
treeb080efc608d2bbd52b77a4a0067402007f50c5a8 /scripts/update.sh
parent3a3c6b866b52721431bed22426d9abfcd0d2dfe0 (diff)
parent7180aaed45dce62e40620a9e4b202526ebd6a3bb (diff)
downloadwallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.tar.gz
wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.tar.zst
wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.zip
Merge remote-tracking branch 'wallabag/master'
Diffstat (limited to 'scripts/update.sh')
-rw-r--r--scripts/update.sh13
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
5ENV=$1
6TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
7
8rm -rf var/cache/*
9git fetch origin
10git fetch --tags
11git checkout $TAG --force
12SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist
13php bin/console cache:clear --env=$ENV