File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 32
32
33
33
$ worker = null ;
34
34
$ requestCount = 0 ;
35
- $ maxRequests = $ _ENV ['MAX_REQUESTS ' ] ?? $ _SERVER ['MAX_REQUESTS ' ];
35
+ $ maxRequests = $ _ENV ['MAX_REQUESTS ' ] ?? $ _SERVER ['MAX_REQUESTS ' ] ?? 1000 ;
36
36
$ requestMaxExecutionTime = $ _ENV ['REQUEST_MAX_EXECUTION_TIME ' ] ?? $ _SERVER ['REQUEST_MAX_EXECUTION_TIME ' ] ?? null ;
37
37
38
38
if (PHP_OS_FAMILY === 'Linux ' && ! is_null ($ requestMaxExecutionTime )) {
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ // Set a default for the application base path and public path if they are missing...
4
+ $ _SERVER ['APP_BASE_PATH ' ] = $ _ENV ['APP_BASE_PATH ' ] ?? $ _SERVER ['APP_BASE_PATH ' ] ?? __DIR__ .'/.. ' ;
5
+ $ _SERVER ['APP_PUBLIC_PATH ' ] = $ _ENV ['APP_PUBLIC_PATH ' ] ?? $ _SERVER ['APP_BASE_PATH ' ] ?? __DIR__ ;
6
+
3
7
require __DIR__ .'/../vendor/laravel/octane/bin/frankenphp-worker.php ' ;
You can’t perform that action at this time.
0 commit comments