Helping developer for CI/CD
- php 7.* https://www.php.net/releases/7_4_0.php
- Composer https://getcomposer.org/
- Nodejs https://nodejs.org/en/
- Install laravel envoy https://laravel.com/docs/7.x/envoy
- install pm2
$ npm i pm2 -g
- Goto your directory example "/var/www/"
- Clone this repository
$ git clone https://github.com/tofikhidayat/deployer.git deployer
$ cd deployer
$ npm install
- Edit the configuration change the secret key and route (if you want)
- Edit repository
- branch ex:*, development, master
- repo ex: tofikhidayat/deployer
- timeout: not working for now
- commands ex:
git pull origin {branch}
or as root/root/.composer/vendor/bin/envoy run deploy
- Add service to pm2
$ pm2 start ecosystem.config.js
- Add pm2 to startup
$ pm2 startup
- Create Envoy task example: https://laravel.com/docs/7.x/envoy#writing-tasks
- Not working for local
- Current process is not sycncronus
- Based on nodejs child process
- Logs allready in directtory logs/{date}/{type}.log
- sycronus process
- web ui
Please help me for improving this repository