wallabag/scripts/dev.sh

21 lines
413 B
Bash
Raw Normal View History

2016-10-30 22:38:38 +01:00
#!/usr/bin/env bash
# You can execute this file to install wallabag dev environment
# eg: `sh dev.sh`
2016-10-27 10:09:43 +02:00
COMPOSER_COMMAND='composer'
REQUIRE_FILE='scripts/require.sh'
2016-10-27 10:09:43 +02:00
if [ ! -f "$REQUIRE_FILE" ]; then
echo "Cannot find $REQUIRE_FILE"
exit 1
fi
. "$REQUIRE_FILE"
2016-10-15 15:16:35 +02:00
2016-10-27 10:09:43 +02:00
$COMPOSER_COMMAND install
if [ -z "$SKIP_WALLABAG_INITIALIZATION" ]
then
php bin/console wallabag:install
fi
php bin/console server:run $HOST