1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01: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,13 +55,18 @@ class PostUpdate extends Command
info("finished migrating"); 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']); $input = new ArrayInput(['command' => 'install', '--no-dev' => 'true']);
$application = new Application(); $application = new Application();
$application->setAutoExit(false); $application->setAutoExit(false);
$output = new BufferedOutput(); $output = new BufferedOutput();
$application->run($input, $output); $application->run($input, $output);
}catch(\Exception $e) {
info("i wasn't able to compser install");
info(print_r($e->getMessage(),1));
}
info("finished running composer install "); info("finished running composer install ");