deploy
Install
$ npm i aimee-deploy --save
$ npm i co gre --save$ npm i pm2 -g
Usage
var $ = ;var Gre = var gre = Grevar Deploy = ;var deploy = git: // 远程Git仓库地址 url: 'https://github.com/gavinning/deploy-test.git' // 本地目标地址 target: '/Users/gavinning/Desktop/test1234' pm: // 应用名称 name: 'test' // 可选,为空时自动赋值为 this.git.target script: '/Users/gavinning/Desktop/test1234' exec_mode : 'cluster' instances : 1 max_memory_restart : '100M'
Example
Publish 发布
// 快捷发布方式deploy
// 详细发布流程
Example
Rollback 回滚
// 快捷回滚方式deploy
// 详细回滚流程
$ pm2 ls