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