Made some changes to facilitate moving the public/ folder
This commit is contained in:
@@ -19,6 +19,10 @@ $app = new Illuminate\Foundation\Application(
|
|||||||
realpath(__DIR__.'/../')
|
realpath(__DIR__.'/../')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$app->bind('path.public', function () {
|
||||||
|
return __DIR__.'/../public';
|
||||||
|
});
|
||||||
|
|
||||||
#$app->loadEnvironmentFrom('.env.php');
|
#$app->loadEnvironmentFrom('.env.php');
|
||||||
$app->useDatabasePath(realpath(__DIR__.'/../app/Database'));
|
$app->useDatabasePath(realpath(__DIR__.'/../app/Database'));
|
||||||
|
|
||||||
|
|||||||
+7
-4
@@ -1,10 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* phpVMS
|
||||||
*
|
*/
|
||||||
* @package Laravel
|
|
||||||
* @author Taylor Otwell <taylor@laravel.com>
|
/**
|
||||||
|
* 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';
|
require __DIR__.'/../bootstrap/autoload.php';
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Instructions on shared hosting...
|
|
||||||
* Assuming you have a structure like this:
|
|
||||||
* /home/your_user
|
|
||||||
* /public_html
|
|
||||||
* /public_ftp
|
|
||||||
*
|
|
||||||
* Place your PHPVMS folder so it's on the same level
|
|
||||||
* as public_html, so it looks like:
|
|
||||||
*
|
|
||||||
* /home/your_user
|
|
||||||
* /public_html
|
|
||||||
* /public_ftp
|
|
||||||
* /phpvms
|
|
||||||
*
|
|
||||||
* Follow these steps:
|
|
||||||
*
|
|
||||||
* 1. Copy everything from the phpvms/public folder into
|
|
||||||
* public_html/
|
|
||||||
* 2. Rename this file (index_sharedhosting.php) to index.php
|
|
||||||
* 3. ???
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
require __DIR__.'/../../bootstrap/autoload.php';
|
|
||||||
|
|
||||||
$app = require_once __DIR__.'/../phpvms/bootstrap/app.php';
|
|
||||||
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
|
||||||
|
|
||||||
$response = $kernel->handle(
|
|
||||||
$request = Illuminate\Http\Request::capture()
|
|
||||||
);
|
|
||||||
|
|
||||||
$response->send();
|
|
||||||
|
|
||||||
$kernel->terminate($request, $response);
|
|
||||||
Reference in New Issue
Block a user