Update local instance of composer.phar on upgrade.

This commit is contained in:
Johnny Moore 2020-04-03 13:13:30 -04:00
parent be79a1f3d6
commit 7e3f718797

View file

@ -109,6 +109,10 @@ echo "--------------------------------------------------------\n\n";
// Composer install // Composer install
if (file_exists('composer.phar')) { if (file_exists('composer.phar')) {
echo "-- Local composer.phar detected, so we'll use that.\n\n"; echo "-- Local composer.phar detected, so we'll use that.\n\n";
echo "-- Updating local composer.phar\n\n";
$composer_update = shell_exec('php composer.phar self-update');
echo $composer_update."\n\n";
$composer_dump = shell_exec('php composer.phar dump'); $composer_dump = shell_exec('php composer.phar dump');
$composer = shell_exec('php composer.phar install --no-dev --prefer-source'); $composer = shell_exec('php composer.phar install --no-dev --prefer-source');