mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Update local instance of composer.phar on upgrade.
This commit is contained in:
parent
be79a1f3d6
commit
7e3f718797
|
@ -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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue