Skip to content

Commit 3b622e1

Browse files
Merge pull request #5 from opiy-org/patch-1
Run background in windows
2 parents 38dae95 + 89d801a commit 3b622e1

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)