diff --git a/bootstrap/app.php b/bootstrap/app.php index 7103cc32..17748d90 100755 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -19,6 +19,10 @@ $app = new Illuminate\Foundation\Application( realpath(__DIR__.'/../') ); +$app->bind('path.public', function () { + return __DIR__.'/../public'; +}); + #$app->loadEnvironmentFrom('.env.php'); $app->useDatabasePath(realpath(__DIR__.'/../app/Database')); diff --git a/public/index.php b/public/index.php index e3916794..b0969b4d 100755 --- a/public/index.php +++ b/public/index.php @@ -1,10 +1,13 @@ + * phpVMS + */ + +/** + * If you move the public folder, or all the files in the public + * folder, be sure to go into the bootstrap/app.php file, and change + * the 'path.public' path to where it lives. */ require __DIR__.'/../bootstrap/autoload.php'; diff --git a/public/index_sharedhosting.php b/public/index_sharedhosting.php deleted file mode 100644 index 20a9dca4..00000000 --- a/public/index_sharedhosting.php +++ /dev/null @@ -1,38 +0,0 @@ -make(Illuminate\Contracts\Http\Kernel::class); - -$response = $kernel->handle( - $request = Illuminate\Http\Request::capture() -); - -$response->send(); - -$kernel->terminate($request, $response);