Merge pull request #11206 from snipe/features/suggest_updating_global_composer
Added a self-update suggestion in the upgrader
This commit is contained in:
commit
d2d0842737
1 changed files with 5 additions and 1 deletions
|
@ -393,13 +393,17 @@ if (file_exists('composer.phar')) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
echo "-- We couldn't find a local composer.phar. No worries, trying globally.\n";
|
||||||
|
echo "Since you are running composer globally, we won't try to update it for you.\n";
|
||||||
|
echo "If you run into issues with this step, try running `composer self-update` \n";
|
||||||
|
echo "before running this updater again\n\n";
|
||||||
|
|
||||||
if ($app_environment == 'production') {
|
if ($app_environment == 'production') {
|
||||||
$composer = shell_exec('composer install --no-dev --prefer-source');
|
$composer = shell_exec('composer install --no-dev --prefer-source');
|
||||||
} else {
|
} else {
|
||||||
$composer = shell_exec('composer install --prefer-source');
|
$composer = shell_exec('composer install --prefer-source');
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "-- We couldn't find a local composer.phar. No worries, trying globally.\n";
|
|
||||||
$composer_dump = shell_exec('composer dump');
|
$composer_dump = shell_exec('composer dump');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue