Ensure project 'config' directory is created and dev server uses 'public' as docroot; fix dirs array to include config\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This commit is contained in:
Bruno Eckhardt committed 2026-06-22 11:50:11 +02:00
1 parent e6f40c7e01
commit b23a501511
1 file changed
+2 -1
+2 -1
View File
@@ -29,6 +29,7 @@ $dirs = [
'WEBROOT/commands',
'public/static',
'WEBROOT/src',
'config',
'src/config',
'src/database',
'src/utils',
@@ -64,7 +65,7 @@ $files['server.php'] = <<<'PHP'
<?php
$port = 8000;
$host = 'localhost';
$root = __DIR__ . '/WEBROOT';
$root = __DIR__ . '/public';
echo "\n🚀 Starte MVC Dev-Server auf http://$host:$port\n";
echo "Drücke STRG+C zum Beenden.\n\n";
passthru("php -S $host:$port -t \"$root\" \"$root/index.php\"");