Deploy Laravel to Production

Author: zemna
Date: April 17, 2021
Share this:

Clone laravel source to server

$ git clone

Install necessary modules

$ npm install

$ composer install --no-dev -o --prefer-dist

$ bower install

Make .env

$ cp .env.example .env

Generate key to .env

$ php artisan key:generate

Execute gulp if necessary

$ gulp --production

Migrate database

$ php artisan migrate

Give owner to web server

$ chown -R www-data:www-data *

Set write permission

$ chmod -R 775 bootstrap/cache
$ chmod -R 775 storage
Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *

Let's connect and create
something awesome together!
2023 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️
crossmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram