Skip to content

Commit 81406c6

Browse files
authored
Update App.php
1 parent 2117303 commit 81406c6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/support/App.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ public static function run()
2626
ini_set('display_errors', 'on');
2727
error_reporting(E_ALL);
2828

29-
if (DIRECTORY_SEPARATOR === '\\') {
30-
echo "Please run 'php windows.php' on windows system." . PHP_EOL;
31-
exit;
32-
}
33-
3429
if (class_exists(Dotenv::class) && file_exists(run_path('.env'))) {
3530
if (method_exists(Dotenv::class, 'createUnsafeImmutable')) {
3631
Dotenv::createUnsafeImmutable(run_path())->load();
@@ -41,6 +36,11 @@ public static function run()
4136

4237
static::loadAllConfig(['route', 'container']);
4338

39+
if (DIRECTORY_SEPARATOR === '\\' && empty(config('server.listen'))) {
40+
echo "Please run 'php windows.php' on windows system." . PHP_EOL;
41+
exit;
42+
}
43+
4444
$errorReporting = config('app.error_reporting');
4545
if (isset($errorReporting)) {
4646
error_reporting($errorReporting);

0 commit comments

Comments
 (0)