X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;h=28453be0d63cadeefbdd0e086e68b7c55bfe810b;hb=bfd69c74e5b4f2ebfcb304b1983bf771c2bb11f7;hp=9b89da35faf2aa18ee70408312659f072ecacc7a;hpb=f48a6f3a542613d68d7f8d12dfe9abe397c48db2;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh old mode 100644 new mode 100755 index 9b89da35..28453be0 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -1,7 +1,17 @@ -#! /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' +REQUIRE_FILE='scripts/require.sh' + +if [ ! -f "$REQUIRE_FILE" ]; then + echo "Cannot find $REQUIRE_FILE" + exit 1 +fi + +. "$REQUIRE_FILE" + +$COMPOSER_COMMAND install php bin/console wallabag:install php bin/console server:run