I am using shared hosting to host my website. I would like to setup a test environment. I am currently on Laravel 5 and my website works fine.
Any guide, I should follow to setup a test environment online ? I have added a domain "test.domain.com"
added this folder in public_html The content of index file is
require __DIR__.'/./domain.dev1/bootstrap/autoload.php';
$app = require_once __DIR__.'/./domain.dev1/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);
But when i try to open the website "test.domain.com" I get the following error in error_log
[22-Sep-2016 09:13:12 Etc/GMT] PHP Warning: require(/home/exelrqma/public_html/http://ift.tt/2cJ4xUT): failed to open stream: No such file or directory in /home/exelrqma/public_html/http://ift.tt/2d6htGQ on line 22
[22-Sep-2016 09:13:12 Etc/GMT] PHP Warning: require(/home/exelrqma/public_html/http://ift.tt/2cJ4xUT): failed to open stream: No such file or directory in /home/exelrqma/public_html/http://ift.tt/2d6htGQ on line 22
What do I need to do to ensure test.domain.com works fine. I have also copied my project folder and added to home (same structure as my main "domain.com")
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire