X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;h=233830e7c5d79ba4f19abe71e151fb4f31cc3d1b;hb=038469e73f651621e8a5c12cf089d0c239031b57;hp=9b89da35faf2aa18ee70408312659f072ecacc7a;hpb=05c009bb853e12d263213298072325f63e3a1deb;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh index 9b89da35..233830e7 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` +#!/usr/bin/env bash +# 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/scripts"; fi +. "$DIR/require.sh" + +$COMPOSER_COMMAND install php bin/console wallabag:install php bin/console server:run