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:
1 parent
e6f40c7e01
commit
b23a501511
1 file changed
+2
-1
@@ -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\"");
|
||||
|
||||
Reference in new issue
Block a user