1.0.19 • Published 5 years ago
node-auto-deployer v1.0.19
介绍
自动化部署代码,支持所有git仓库
###安装
1. npm i node-auto-deployer -g
2. npm i pm2 -g(已安装请忽略)
###使用
编写webhook请求
例如:
Secret 随便填写
注意 id与仓库列表ID对应,做仓库识别
2.编写本地配置conf.js
//config
module.exports={
port:3456, //port 端口(注意端口是否能正常访问)
host:getIPAdress()||'127.0.0.1', //IP 项目运行IP
//仓库列表
list:[
{
id:2, //id 请求对应的唯一id
remoteUrl:"https://github.com/pretty-foam/sourceLearning.git", //remote depository url 远程仓库地址
savePath:"./test", //Local Path 本地保存地址
},
{
id:1, //id
remoteUrl:"https://gitee.com/mumu-osc/NiceFish.git", //remote depository url
savePath:"./test1", //Local Path
},
]
}
3.启动
atd start
###相关指令
启动 atd start
停止 atd stop
重启 atd restart
1.0.19
5 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago