Skip to content

Commit a82ab51

Browse files
committed
Fix windows
1 parent d1be5e7 commit a82ab51

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/windows.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
if (!is_dir($runtimeProcessPath)) {
3030
mkdir($runtimeProcessPath);
3131
}
32-
$processFiles = [
33-
__DIR__ . DIRECTORY_SEPARATOR . 'start.php'
34-
];
32+
$processFiles = [];
33+
if (config('server.listen')) {
34+
$processFiles[] = __DIR__ . DIRECTORY_SEPARATOR . 'start.php';
35+
}
3536
foreach (config('process', []) as $processName => $config) {
3637
$processFiles[] = write_process_file($runtimeProcessPath, $processName, '');
3738
}

0 commit comments

Comments
 (0)