]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/dev.sh
Merge pull request #3858 from wallabag/bump-ocramius
[github/wallabag/wallabag.git] / scripts / dev.sh
old mode 100644 (file)
new mode 100755 (executable)
index 9b89da3..0703ced
@@ -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