From c5c81c86512cb4244db75109316f54392c51a28c Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 19 Dec 2017 18:35:40 +1030 Subject: [PATCH] Add public directory --- .htaccess => public/.htaccess | 0 {assets => public/assets}/.gitignore | 0 {assets => public/assets}/avatars/.gitignore | 0 index.php => public/index.php | 4 ++-- 4 files changed, 2 insertions(+), 2 deletions(-) rename .htaccess => public/.htaccess (100%) rename {assets => public/assets}/.gitignore (100%) rename {assets => public/assets}/avatars/.gitignore (100%) rename index.php => public/index.php (82%) diff --git a/.htaccess b/public/.htaccess similarity index 100% rename from .htaccess rename to public/.htaccess diff --git a/assets/.gitignore b/public/assets/.gitignore similarity index 100% rename from assets/.gitignore rename to public/assets/.gitignore diff --git a/assets/avatars/.gitignore b/public/assets/avatars/.gitignore similarity index 100% rename from assets/avatars/.gitignore rename to public/assets/avatars/.gitignore diff --git a/index.php b/public/index.php similarity index 82% rename from index.php rename to public/index.php index c495ba2..b2faef9 100644 --- a/index.php +++ b/public/index.php @@ -9,10 +9,10 @@ * file that was distributed with this source code. */ -require 'vendor/autoload.php'; +require '../vendor/autoload.php'; Flarum\Http\Server::fromSite( (new Flarum\Foundation\Site) - ->setBasePath(__DIR__) + ->setBasePath(__DIR__.'/..') ->setPublicPath(__DIR__) )->listen();