From d7f66d83af3fdc1a2bd616543c42c8f086479413 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Fri, 6 Jan 2017 14:55:12 +0000 Subject: [PATCH] testing for #95 composer auto run --- scripts/pull | 5 +++++ scripts/start.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/scripts/pull b/scripts/pull index c6451cc..64f7540 100755 --- a/scripts/pull +++ b/scripts/pull @@ -10,6 +10,11 @@ if [ -z "$GIT_NAME" ]; then exit fi +# Try auto install for composer +if [ -f "$WEBROOT/composer.lock" ]; then + php composer.phar update +fi + cd /var/www/html git pull || exit 1 chown -Rf nginx:nginx /var/www/html diff --git a/scripts/start.sh b/scripts/start.sh index 1b0266d..c33c42d 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -51,6 +51,11 @@ if [ ! -d "/var/www/html/.git" ]; then fi fi +# Try auto install for composer +if [ -f "$WEBROOT/composer.lock" ]; then + php composer.phar install +fi + # Enable custom nginx config files if they exist if [ -f /var/www/html/conf/nginx/nginx-site.conf ]; then cp /var/www/html/conf/nginx/nginx-site.conf /etc/nginx/sites-available/default.conf