added installPackages.R
This commit is contained in:
parent
4c730c0167
commit
c9bf3f0041
|
|
@ -58,7 +58,7 @@ public function createReport()
|
|||
])->validateWithBag('createReport');
|
||||
|
||||
|
||||
$projectFolder = base_path('../');
|
||||
$projectFolder = base_path('../');
|
||||
|
||||
$command = [
|
||||
sprintf('%sbuild_report.sh', $projectFolder),
|
||||
|
|
@ -68,18 +68,25 @@ public function createReport()
|
|||
// Convert commands array to a single string
|
||||
|
||||
$process = new Process($command);
|
||||
$process->setTimeout(3600); // stel een geschikte timeout in
|
||||
$currentPath = '/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin/Users/mfolkerts/anaconda3/bin:/Library/Apple/usr/bin';
|
||||
|
||||
$process->setEnv(['PATH' => $currentPath.':/usr/local/Cellar/pandoc/3.1.8/bin/pandoc']);
|
||||
$process->setTimeout(36000); // stel een geschikte timeout in
|
||||
$process->start();
|
||||
|
||||
try {
|
||||
$myOutput = [];
|
||||
$process->wait(function ($type, $buffer) use (&$myOutput){
|
||||
$process->wait(function ($type, $buffer) use (&$myOutput) {
|
||||
$this->stream(to: 'processOutput', content: $buffer);
|
||||
$myOutput[] = $buffer;
|
||||
logger($buffer);
|
||||
});
|
||||
logger('done');
|
||||
$this->processOutput = collect($myOutput)->join('\n');
|
||||
|
||||
} catch (ProcessFailedException $exception) {
|
||||
logger('mee------------meee');
|
||||
logger ('error', $exception->getMessage());
|
||||
echo $exception->getMessage();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
|
|
||||
*/
|
||||
|
||||
'layout' => 'layouts.app',
|
||||
'layout' => 'components.layouts.app',
|
||||
|
||||
/*
|
||||
|---------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Contracts\Http\Kernel;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,15 @@
|
|||
<!-- Scripts -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
<script>
|
||||
document.addEventListener('livewire:init', () => {
|
||||
Livewire.hook('request', (object) => {
|
||||
debugger;
|
||||
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<!-- Styles -->
|
||||
@livewireStyles
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Reference in a new issue