-#! /usr/bin/env bash
+#!/usr/bin/env bash
# You can execute this file to install wallabag dev environment
# eg: `sh dev.sh`
-DIR="${BASH_SOURCE%/*}"
-if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
-. "$DIR/require.sh"
+COMPOSER_COMMAND='composer'
+REQUIRE_FILE='scripts/require.sh'
-composer install
+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