syntacstudio / micron

Help developer for CI/CD integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deployer

Helping developer for CI/CD

Requirement

Installation

  • 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

Note

  • Not working for local
  • Current process is not sycncronus
  • Based on nodejs child process
  • Logs allready in directtory logs/{date}/{type}.log

Todo

  • sycronus process
  • web ui

Attention

Please help me for improving this repository

About

Help developer for CI/CD integration

License:MIT License


Languages

Language:JavaScript 90.3%Language:CSS 9.7%Language:HTML 0.0%