2016-10-04 3 views
0

라이브에서 실행하려면 어떤 파일을 변경해야합니까? barber_base에서로컬에서 라이브로 laravel 5.3 이동

website.com/barber_base

내가 공공 제외한 모든 laravel 파일이 :

는 지금이 내 구조입니다. 이발소에서

website.com/public_html/barber

나는 단지 공개 콘텐츠를 가지고있다.

스택을 검색했지만 laravel 5+에 대한 설명을 찾을 수 없습니다.

편집 난에서 barber_base에 server.php 편집 :

if ($uri !== '/' && file_exists(__DIR__.'public/'.$uri)) { 
    return false; 
} 

require_once __DIR__.'public/index.php'; 

if ($uri !== '/' && file_exists(__DIR__.'../public_html/barber/'.$uri)) { 
    return false; 
} 

require_once __DIR__.'../public_html/barber/index.php'; 

에 그러나 그것은 작동하지 않습니다. 500 오류가 발생합니다.

+0

오류가있어 ??? –

+0

@MehulKuriya 내 편집을 참조하십시오. – twoam

+0

index.php 파일이 public/index.php에 있습니다. 루트로 이동하여 시도하십시오 –

답변

0

당신은 파일

아래에서 변경해야 \ 설정 \ app.php

'url' => 'http://localhost:8888', 

\ 설정 \ session.php

'domain' => null, // default will be null but sometimes session creates problem. If So then need to change in this section also. 
+0

URL을 어떻게 변경합니까? http://website.com 또는? – twoam

+0

당신은'http : // website.com'처럼 넣어야 만합니다. – Manish

+0

@JustinTime 그 라우트에는'.env'와 같은 laravel 루트 파일이 들어 있습니다. – Manish