Better support for PHP's built-in webserver
This commit is contained in:
@@ -5,4 +5,4 @@ app:
|
||||
volumes:
|
||||
- .:/app
|
||||
working_dir: /app
|
||||
command: "php -S 0.0.0.0:8000 -t web"
|
||||
command: "php -S 0.0.0.0:8000 -t web web/index.php"
|
||||
|
@@ -15,6 +15,10 @@ use function Stratify\Framework\pipe;
|
||||
use function Stratify\Framework\router;
|
||||
use function Stratify\Router\route;
|
||||
|
||||
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$modules = [
|
||||
|
Reference in New Issue
Block a user