Fix running composer with respect to different WEBROOT.

The composer configuration should always be located in the project root,
independently where the webroot is located. Closes #95.
This commit is contained in:
Sven Koschnicke
2017-03-20 13:05:41 +01:00
parent 847cd43476
commit 7f2ff02904
3 changed files with 7 additions and 8 deletions

View File

@@ -11,8 +11,8 @@ if [ -z "$GIT_NAME" ]; then
fi
# Try auto install for composer
if [ -f "$WEBROOT/composer.lock" ]; then
php composer.phar install --no-dev
if [ -f "/var/www/html/composer.lock" ]; then
composer install --no-dev --working-dir=/var/www/html
fi
cd /var/www/html