Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Oct 24, 2023
1 parent 41336ce commit d933bf2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/core/src/Service/TailwindGenerator.php
Expand Up @@ -37,9 +37,12 @@ public function run(PageInterface $page): void
);

$cmd = 'cd "'.str_replace('"', '\"', $this->projectDir).'/assets" && '
.('' !== $this->pathToBin ? 'export PATH="'.$this->pathToBin.'" && ' : '')
.('' !== $this->pathToBin ? 'export PATH="'.str_replace('"', '\"', $this->pathToBin).'" && ' : '')
.'yarn encore production >"'.str_replace('"', '\"', $this->projectDir).'/var/log/lastTailwindGeneration" 2>&1 &';
@exec($cmd);
dd($cmd);
@proc_open(
'{ ('.$cmd.') <&3 3<&- 3>/dev/null & } 3<&0;',
[['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']],
$pipes
);
}
}

0 comments on commit d933bf2

Please sign in to comment.