Configure all paths explicitly

Suggested by @tobscure below commit dfebb5c8ca.
pull/57/head
Franz Liedke 2018-10-28 23:12:45 +01:00
parent 084d1b2ff2
commit 8b9da9be31
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
2 changed files with 10 additions and 2 deletions

6
flarum
View File

@ -12,7 +12,11 @@
require 'vendor/autoload.php';
$server = new Flarum\Console\Server(
Flarum\Foundation\Site::fromDefaultBase(__DIR__)
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__,
'public' => __DIR__.'/public',
'storage' => __DIR__.'/storage',
])
);
$server->listen();

View File

@ -12,7 +12,11 @@
require '../vendor/autoload.php';
$server = new Flarum\Http\Server(
Flarum\Foundation\Site::fromDefaultBase(__DIR__.'/..')
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__.'/..',
'public' => __DIR__.'/../public',
'storage' => __DIR__.'/../storage',
])
);
$server->listen();