Skip to content

Commit 89d801a

Browse files
authored
Run background in windows
W/a to work on windows
1 parent 38dae95 commit 89d801a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/classes/Artisan/Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public function runInBackground()
3131

3232
protected function composeForRunInBackground()
3333
{
34+
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
35+
return 'start /B ' . $this->composeForRun();
36+
}
3437
return "({$this->composeForRun()}) > /dev/null 2>&1 &";
3538
}
3639

0 commit comments

Comments
 (0)