]> git.immae.eu Git - github/wallabag/wallabag.git/blob - scripts/install.sh
cf966a0dd3705d57b6c9946fa399fca7a02125b9
[github/wallabag/wallabag.git] / scripts / install.sh
1 #! /usr/bin/env bash
2 # You can execute this file to install wallabag
3 # eg: `sh install.sh prod`
4
5 DIR="${BASH_SOURCE%/*}"
6 if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
7 . "$DIR/require.sh"
8
9 ENV=$1
10 TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
11
12 git checkout $TAG
13 SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist
14 php bin/console wallabag:install --env=$ENV