2016-10-30 21:38:38 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-10-27 07:53:09 +00:00
|
|
|
# You can execute this file to install wallabag dev environment
|
|
|
|
# eg: `sh dev.sh`
|
|
|
|
|
2016-10-27 08:09:43 +00:00
|
|
|
COMPOSER_COMMAND='composer'
|
2019-01-17 19:04:57 +00:00
|
|
|
REQUIRE_FILE='scripts/require.sh'
|
2016-10-27 08:09:43 +00:00
|
|
|
|
2019-01-17 19:04:57 +00:00
|
|
|
if [ ! -f "$REQUIRE_FILE" ]; then
|
|
|
|
echo "Cannot find $REQUIRE_FILE"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
. "$REQUIRE_FILE"
|
2016-10-15 13:16:35 +00:00
|
|
|
|
2016-10-27 08:09:43 +00:00
|
|
|
$COMPOSER_COMMAND install
|
2016-10-15 13:16:35 +00:00
|
|
|
php bin/console wallabag:install
|
|
|
|
php bin/console server:run
|