diff options
author | lizyn <zhiylin@outlook.com> | 2020-02-24 10:04:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 10:04:13 +0800 |
commit | b19df31d78d881a43bcf6b3215e5fc3781e8e8aa (patch) | |
tree | d0d9861694a4b5e5fbfdbeb53c255ecd15fe9328 /scripts/dev.sh | |
parent | 4d0c632c70ea50d459c3c55ddda2e0f394dd51cb (diff) | |
parent | 04d918cae0227c06a41d27fb6533dddbf30dfe71 (diff) | |
download | wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.tar.gz wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.tar.zst wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.zip |
Merge pull request #1 from wallabag/master
Keep up with the master again
Diffstat (limited to 'scripts/dev.sh')
-rwxr-xr-x | scripts/dev.sh | 17 |
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 | ||
5 | COMPOSER_COMMAND='composer' | 5 | COMPOSER_COMMAND='composer' |
6 | REQUIRE_FILE='scripts/require.sh' | ||
6 | 7 | ||
7 | DIR="${BASH_SOURCE}" | 8 | if [ ! -f "$REQUIRE_FILE" ]; then |
8 | if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi | 9 | echo "Cannot find $REQUIRE_FILE" |
9 | . "$DIR/require.sh" | 10 | exit 1 |
11 | fi | ||
12 | |||
13 | . "$REQUIRE_FILE" | ||
10 | 14 | ||
11 | $COMPOSER_COMMAND install | 15 | $COMPOSER_COMMAND install |
12 | php bin/console wallabag:install | 16 | if [ -z "$SKIP_WALLABAG_INITIALIZATION" ] |
13 | php bin/console server:run | 17 | then |
18 | php bin/console wallabag:install | ||
19 | fi | ||
20 | php bin/console server:run $HOST | ||