This is an example deploy Laravel project on Ubuntu 16.04 LTS using Deployer
Local computer run Linux, MacOS or Windows (Git bash)
- Make a VPS run Ubuntu 16.04 LTS
- Point your domain to your VPS
-
Make file
setup/.env
(copy fromsetup/.env.example
) and fill your server configuration -
Upload all
setup
directory to server byscp
$ scp -r ./setup root@xx.xx.xx.xx:~/
-
SSH to server with root account (or using
sudo su
) and execute.sh
scripts in order (from 01 to 30)
-
Copy your
.env
andlaravel-echo.json
toshared
directory -
Configure your hosts to
hosts.yml
(copy fromhosts.yml.example
) -
Install all dependencies by
composer install
command$ composer install
-
Run
deploy:configure
task on the first deploy$ ./vendor/bin/dep deploy:configure production
-
Run
deploy
task$ ./vendor/bin/dep deploy production
- Run Deployer with option
-vvv
for debug mode - You should configure SSH key and deploy key before run deploy
- If your Laravel application using Laravel Echo Server, Queue or Schedule, you should execute necessary script for your special stack
See all change logs in CHANGELOG
Please see CONTRIBUTING for details.
If you discover any security related issues, please email to Oanh Nguyen instead of using the issue tracker.
This project is released under the MIT License.
Copyright © 2017-2018 Oanh Nguyen.