X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;h=fa3b2d5d5de32509e2e4160fd7a8b64ad9407c7f;hb=069d39dfaffdc99db44d578250cd366b1af69fd6;hp=9b89da35faf2aa18ee70408312659f072ecacc7a;hpb=f48a6f3a542613d68d7f8d12dfe9abe397c48db2;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh index 9b89da35..fa3b2d5d 100644 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -1,7 +1,13 @@ #! /usr/bin/env bash -# You can execute this file to install wallabag dev environmnet -# eg: `sh install.sh prod` +# You can execute this file to install wallabag dev environment +# eg: `sh dev.sh` -composer install +COMPOSER_COMMAND='composer' + +DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi +. "$DIR/require.sh" + +$COMPOSER_COMMAND install php bin/console wallabag:install php bin/console server:run