Oct 13, 2015
5
Level 1
L5.1: how to deploy to shared hosting properly?
I have deployed my Laravel 5.1 app to a shared hosting. I have created an addon domain using Cpanel. So I have a folder named "motarjeman" in public_html for this domain. Then I have uploded my project to this folder. All of my project files are in folder again called "motarjeman". Then I copied all contents of the public folder to the /public_html/motarjeman. At last I have modified the index.php in the root directory (i.e in the /public_html/motarjeman) as following:
require __DIR__.'/motarjeman/bootstrap/autoload.php';
$app = require_once __DIR__.'/motarjeman/bootstrap/app.php';
Is it the right way?
Please or to participate in this conversation.