]> git.immae.eu Git - github/wallabag/wallabag.git/blame_incremental - scripts/update.sh
Fix documentation wording for matches/notmatches tagging rules
[github/wallabag/wallabag.git] / scripts / update.sh
... / ...
CommitLineData
1#!/usr/bin/env bash
2# You can execute this file to update wallabag
3# eg: `sh update.sh prod`
4
5set -e
6set -u
7
8COMPOSER_COMMAND='composer'
9
10DIR="${BASH_SOURCE}"
11if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi
12. "$DIR/require.sh"
13
14ENV=$1
15
16rm -rf var/cache/*
17git fetch origin
18git fetch --tags
19TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
20git checkout $TAG --force
21SYMFONY_ENV=$ENV $COMPOSER_COMMAND install --no-dev -o --prefer-dist
22php bin/console doctrine:migrations:migrate --no-interaction --env=$ENV
23php bin/console cache:clear --env=$ENV