Deploy Laravel to Production

Clone laravel source to server

$ git clone https://github.com/zemna/groupware.git

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
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments