Brijpal Sharma
laravel
Publish on:-March 29th, 2019 ,
Category:- Web Development
Brijpal Sharma
laravel
Publish on:-March 29th, 2019 ,
Category:- Web Development
After completed Laravel applications we need to deploy on shared hosting.
If we Laravel application files and folders we can see a public folder first zip this folder (only public folder) after that zip all remaining folders.
Now we have two folder
Now Login to your Cpanel you can see many folders one of them is public_html. upload public zip file into public_html and unzip the file. after that create a new folder in the main directory named what you want.
Here a named "name" folder in this folder upload the second zip file and extract.
After that back to the public_html folder open index.php file and set a right path.
Open the index.php file and update it.
require __DIR__.'/../project/vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../project/name/bootstrap/app.php';
Now every this is done now you can check your live URL
So here we completed the tutorial on Deploy Laravel Application To Shared Hosting The Easy and save Way
Brijpal Sharma
Hello, My Name is Brijpal Sharma. I am a Web Developer, Professional Blogger and Digital Marketer from India. I am the founder of Codermen. I started this blog to help web developers & bloggers by providing easy and best tutorials, articles and offers for web developers and bloggers...
You must be logged in to post a comment.