testing for #95 composer auto run

This commit is contained in:
Ric Harvey
2017-01-06 14:55:12 +00:00
parent 00b51479e9
commit d7f66d83af
2 changed files with 10 additions and 0 deletions

View File

@@ -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

View File

@@ -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