0
我试图将我的laravel项目上传到cPanel。但直到现在,它似乎并没有工作。 我已经将我的项目中的目录和文件移动到根目录中的'lavravel'目录中。将laravel项目上传到cPanel
app/
bootstrap/
config/
database/
resources/
storage/
artisan
composer.json
composer.lock
.env
而且从我的公共文件夹移动文件到public_html 现在我的目录看起来是这样的。
我在以下文件中进行了更改。 laravel /引导/ app.php
/*
|--------------------------------------------------------------------------
| Public Path
|--------------------------------------------------------------------------
|
| Set the path to the Laravel "public" directory so that any files/packages
| that use app('path.public') to get the "public" path find the right path.
| DO NOT include a trailing slash on the path.
|
*/
$app->bind('path.public', function()
{
return __DIR__.'/../../public_html';
});
的public_html/index.php文件
require __DIR__.'/../laravel/bootstrap/autoload.php';
$app = require_once __DIR__.'/../laravel/bootstrap/app.php';
但是,它似乎并不工作。它显示一个空白页面。正如你可以通过这个URL看到的。 nepalride.com