mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 15:14:35 -04:00
Adjustments for post update
This commit is contained in:
parent
d2a039015e
commit
c498f230d4
@ -55,16 +55,21 @@ 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']);
|
||||||
|
$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("finished running composer install ");
|
||||||
|
|
||||||
info(print_r($output->fetch(), 1));
|
info(print_r($output->fetch(), 1));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user