1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Merge pull request #4508 from turbo124/v5-develop

Adjustments for post update
This commit is contained in:
David Bomba 2020-12-17 07:12:45 +11:00 committed by GitHub
commit 9b259ed3d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,16 +55,21 @@ class PostUpdate extends Command
info("finished migrating");
putenv('COMPOSER_HOME=' . __DIR__ . '/vendor/bin/composer');
try {
putenv('COMPOSER_HOME=' . __DIR__ . '/vendor/bin/composer');
$input = new ArrayInput(['command' => 'install', '--no-dev' => 'true']);
$application = new Application();
$application->setAutoExit(false);
$output = new BufferedOutput();
$application->run($input, $output);
}catch(\Exception $e) {
info("i wasn't able to compser install");
info(print_r($e->getMessage(),1));
}
$input = new ArrayInput(['command' => 'install', '--no-dev' => 'true']);
$application = new Application();
$application->setAutoExit(false);
$output = new BufferedOutput();
$application->run($input, $output);
info("finished running composer install ");
info(print_r($output->fetch(), 1));
try {