1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Output results on exec()

This commit is contained in:
David Bomba 2021-04-29 13:15:39 +10:00
parent 342b383115
commit 003303a83b
2 changed files with 11 additions and 5 deletions

View File

@ -52,8 +52,14 @@ class PostUpdate extends Command
nlog("finished migrating");
exec('vendor/bin/composer install --no-dev -o');
$output = [];
exec('vendor/bin/composer install --no-dev -o', $output);
info(print_r($output,1));
nlog($output);
nlog("finished running composer install ");

View File

@ -345,14 +345,14 @@ class MigrationController extends BaseController
return;
}
try {
// try {
// StartMigration::dispatch(base_path("storage/app/public/$migration_file"), $user, $fresh_company)->delay(now()->addSeconds(5));
nlog("starting migration job");
nlog($migration_file);
StartMigration::dispatch($migration_file, $user, $fresh_company);
} catch (\Exception $e) {
nlog($e->getMessage());
}
// } catch (\Exception $e) {
// nlog($e->getMessage());
// }
}
return response()->json([