aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/dev.sh
blob: 28453be0d63cadeefbdd0e086e68b7c55bfe810b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
# You can execute this file to install wallabag dev environment
# eg: `sh dev.sh`

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
php bin/console wallabag:install
php bin/console server:run