Made some changes to facilitate moving the public/ folder
This commit is contained in:
parent
aa95ee3384
commit
710a721305
@ -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'));
|
||||
|
||||
|
@ -1,10 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Laravel - A PHP Framework For Web Artisans
|
||||
*
|
||||
* @package Laravel
|
||||
* @author Taylor Otwell <taylor@laravel.com>
|
||||
* 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';
|
||||
|
@ -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);
|
Loading…
Reference in New Issue
Block a user