X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;h=cc465cf9877aac24a10997ff52af1c0339df0766;hb=b19df31d78d881a43bcf6b3215e5fc3781e8e8aa;hp=9b89da35faf2aa18ee70408312659f072ecacc7a;hpb=64a8781e453c40ff144d03405abe2dc1ccfacbe0;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh old mode 100644 new mode 100755 index 9b89da35..cc465cf9 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -1,7 +1,20 @@ -#! /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 -php bin/console wallabag:install -php bin/console server:run +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 +if [ -z "$SKIP_WALLABAG_INITIALIZATION" ] +then + php bin/console wallabag:install +fi +php bin/console server:run $HOST