1.0.19 • Published 7 years ago

node-auto-deployer v1.0.19

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

介绍

自动化部署代码,支持所有git仓库

###安装

1.  npm  i node-auto-deployer -g
2.  npm  i pm2 -g(已安装请忽略)

###使用

  1. 编写webhook请求

    例如:

    Watch the video

    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

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago