]>
Commit | Line | Data |
---|---|---|
4e7863c6 | 1 | #! /usr/bin/env bash |
7c122534 NL |
2 | # You can execute this file to update wallabag |
3 | # eg: `sh update.sh prod` | |
4e7863c6 | 4 | |
9998c725 NL |
5 | DIR="${BASH_SOURCE%/*}" |
6 | if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi | |
7 | . "$DIR/require.sh" | |
8 | ||
4e7863c6 NL |
9 | ENV=$1 |
10 | TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | |
11 | ||
12 | rm -rf var/cache/* | |
13 | git fetch origin | |
14 | git fetch --tags | |
84e3c36e | 15 | git checkout $TAG --force |
4e7863c6 NL |
16 | SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist |
17 | php bin/console cache:clear --env=$ENV |