Skip to content

Commit 8b9da9b

Browse files
committed
Configure all paths explicitly
Suggested by @tobscure below commit dfebb5c.
1 parent 084d1b2 commit 8b9da9b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

flarum

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
require 'vendor/autoload.php';
1313

1414
$server = new Flarum\Console\Server(
15-
Flarum\Foundation\Site::fromDefaultBase(__DIR__)
15+
Flarum\Foundation\Site::fromPaths([
16+
'base' => __DIR__,
17+
'public' => __DIR__.'/public',
18+
'storage' => __DIR__.'/storage',
19+
])
1620
);
1721

1822
$server->listen();

public/index.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
require '../vendor/autoload.php';
1313

1414
$server = new Flarum\Http\Server(
15-
Flarum\Foundation\Site::fromDefaultBase(__DIR__.'/..')
15+
Flarum\Foundation\Site::fromPaths([
16+
'base' => __DIR__.'/..',
17+
'public' => __DIR__.'/../public',
18+
'storage' => __DIR__.'/../storage',
19+
])
1620
);
1721

1822
$server->listen();

0 commit comments

Comments
 (0)