]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/dev.sh
Usage of composer.phar if it's found
[github/wallabag/wallabag.git] / scripts / dev.sh
index 9b89da35faf2aa18ee70408312659f072ecacc7a..fa3b2d5d5de32509e2e4160fd7a8b64ad9407c7f 100644 (file)
@@ -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