mirror of
https://github.com/Qbix/webserver.git
synced 2026-07-22 07:57:23 +02:00
Added support for legacy scripts via CGI mode instead of CLI SAPI
This commit is contained in:
@@ -110,6 +110,9 @@ if (!$webDir || !is_dir($webDir)) {
|
||||
// Initialize Q with the project root (parent of web/)
|
||||
// This sets up autoloading from classes/ and handlers from handlers/
|
||||
$projectRoot = dirname($webDir);
|
||||
if (!defined('APP_DIR')) {
|
||||
define('APP_DIR', $projectRoot);
|
||||
}
|
||||
Q::init($projectRoot);
|
||||
|
||||
// Load .env file if present (sets $_ENV and getenv())
|
||||
|
||||
Reference in New Issue
Block a user