1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +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,13 +55,18 @@ 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);
$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));
}
info("finished running composer install ");