node-auto-deployer
v1.0.19
Published
Automated deployment code
Downloads
27
Readme
介绍
自动化部署代码,支持所有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