2017-02-19 71 views
0

我试图将我的laravel项目上传到cPanel。但直到现在,它似乎并没有工作。 我已经将我的项目中的目录和文件移动到根目录中的'lavravel'目录中。将laravel项目上传到cPanel

app/ 
bootstrap/ 
config/ 
database/ 
resources/ 
storage/ 
artisan 
composer.json 
composer.lock 
.env 

而且从我的公共文件夹移动文件到public_html 现在我的目录看起来是这样的。 Directory

我在以下文件中进行了更改。 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

回答

0

你应该看看Laravel

上传文件后,请确保您设置的storagebootstrap/cache文件夹正确的权限。

此外,您需要运行composer install来安装Laravel所需的供应商软件包。您上传的laravel文件夹没有vendors文件夹。

查看错误日志,你会看到你遇到的所有问题。