mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Rearrange a few thing
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8d9cdf9c15
commit
94a337fc9e
15
upgrade.php
15
upgrade.php
|
@ -365,7 +365,7 @@ echo "--------------------------------------------------------\n";
|
|||
echo "STEP 8: Updating composer dependencies:\n";
|
||||
echo "(This may take a moment.)\n";
|
||||
echo "--------------------------------------------------------\n\n";
|
||||
|
||||
echo "-- Running the app in ".$app_environment." mode.\n";
|
||||
|
||||
// Composer install
|
||||
if (file_exists('composer.phar')) {
|
||||
|
@ -374,7 +374,7 @@ if (file_exists('composer.phar')) {
|
|||
$composer_update = shell_exec('php composer.phar self-update');
|
||||
echo $composer_update."\n\n";
|
||||
|
||||
$composer_dump = shell_exec('php composer.phar dump');
|
||||
|
||||
|
||||
// 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_ENV
|
||||
|
@ -383,18 +383,23 @@ if (file_exists('composer.phar')) {
|
|||
} else {
|
||||
$composer = shell_exec('php composer.phar install --prefer-source');
|
||||
}
|
||||
$composer_dump = shell_exec('php composer.phar dump');
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
echo "-- We couldn't find a local composer.phar. No worries, trying globally.\n\n";
|
||||
$composer_dump = shell_exec('composer dump');
|
||||
|
||||
if ($app_environment == 'production') {
|
||||
$composer = shell_exec('composer install --no-dev --prefer-source');
|
||||
} else {
|
||||
$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');
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
echo $composer_dump."\n";
|
||||
|
|
Loading…
Reference in a new issue