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"); 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 "); nlog("finished running composer install ");

View File

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