aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/dev.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev.sh')
-rwxr-xr-xscripts/dev.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/dev.sh b/scripts/dev.sh
index 0703ced1..cc465cf9 100755
--- a/scripts/dev.sh
+++ b/scripts/dev.sh
@@ -3,11 +3,18 @@
3# eg: `sh dev.sh` 3# eg: `sh dev.sh`
4 4
5COMPOSER_COMMAND='composer' 5COMPOSER_COMMAND='composer'
6REQUIRE_FILE='scripts/require.sh'
6 7
7DIR="${BASH_SOURCE}" 8if [ ! -f "$REQUIRE_FILE" ]; then
8if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi 9 echo "Cannot find $REQUIRE_FILE"
9. "$DIR/require.sh" 10 exit 1
11fi
12
13. "$REQUIRE_FILE"
10 14
11$COMPOSER_COMMAND install 15$COMPOSER_COMMAND install
12php bin/console wallabag:install 16if [ -z "$SKIP_WALLABAG_INITIALIZATION" ]
13php bin/console server:run 17then
18 php bin/console wallabag:install
19fi
20php bin/console server:run $HOST