A free open source IT asset/license management system
Moved composer clear commands to after composer install per #16334
snipe9b0ea51d3587
diff --git a/upgrade.php b/upgrade.phpindex ecc424c792..bd1678534b 100644--- a/upgrade.php+++ b/upgrade.php@@ -479,15 +479,6 @@ foreach ($unused_files as $unused_file) {}echo "\n";-$config_clear = shell_exec('php artisan config:clear');-$cache_clear = shell_exec('php artisan cache:clear');-$route_clear = shell_exec('php artisan route:clear');-$view_clear = shell_exec('php artisan view:clear');-echo $success_icon.' '.trim($config_clear)."\n";-echo $success_icon.' '.trim($cache_clear)."\n";-echo $success_icon.' '.trim($route_clear)."\n";-echo $success_icon.' '.trim($view_clear)."\n";-echo "\n";echo "\e[95m--------------------------------------------------------\n";echo "STEP 6: Updating composer dependencies:\n";@@ -497,13 +488,11 @@ echo "-- Running the app in ".$app_environment." mode.\n";// Composer installif (file_exists('composer.phar')) {- echo "√ Local composer.phar detected, so we'll use that.\n\n";+ echo $success_icon." 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";--// Use --no-dev only if we are in production mode.// This will cause errors otherwise, if the user is in develop or local for their APP_ENVif ($app_environment == 'production') {@@ -511,9 +500,8 @@ if (file_exists('composer.phar')) {} else {$composer = shell_exec('php composer.phar install --prefer-source');}- $composer_dump = shell_exec('php composer.phar dump');-+ $composer_dump = shell_exec('php composer.phar dump');} else {@@ -531,13 +519,20 @@ if (file_exists('composer.phar')) {$composer_dump = shell_exec('composer dump');-}echo $composer_dump."\n";echo $composer;-+$config_clear = shell_exec('php artisan config:clear');+$cache_clear = shell_exec('php artisan cache:clear');+$route_clear = shell_exec('php artisan route:clear');+$view_clear = shell_exec('php artisan view:clear');+echo $success_icon.' '.trim($config_clear)."\n";+echo $success_icon.' '.trim($cache_clear)."\n";+echo $success_icon.' '.trim($route_clear)."\n";+echo $success_icon.' '.trim($view_clear)."\n";+echo "\n";echo "\e[95m--------------------------------------------------------\n";echo "STEP 7: Putting application into maintenance mode: \n";