From 9998c725330b4a99d6d12df60ac8234052e80b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 27 Oct 2016 09:53:09 +0200 Subject: Added require.sh to check if composer is installed --- scripts/dev.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/dev.sh') diff --git a/scripts/dev.sh b/scripts/dev.sh index 9b89da35..9f5b2432 100644 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -1,6 +1,10 @@ #! /usr/bin/env bash -# You can execute this file to install wallabag dev environmnet -# eg: `sh install.sh prod` +# 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 install php bin/console wallabag:install -- cgit v1.2.3 From c4d9a8d6d0db2be5c502e257bbeb963e3870d521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 27 Oct 2016 10:09:43 +0200 Subject: Usage of composer.phar if it's found --- scripts/dev.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/dev.sh') diff --git a/scripts/dev.sh b/scripts/dev.sh index 9f5b2432..fa3b2d5d 100644 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -2,10 +2,12 @@ # You can execute this file to install wallabag dev environment # eg: `sh dev.sh` +COMPOSER_COMMAND='composer' + DIR="${BASH_SOURCE%/*}" if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi . "$DIR/require.sh" -composer install +$COMPOSER_COMMAND install php bin/console wallabag:install php bin/console server:run -- cgit v1.2.3