oschina-webhook



## 安装
    

需要运行

    npm install -g oschina-webhook

默认启动

    oschina-webhook

后台运行:

    oschina-webhook -d
    
所有命令选项:

    Usage: oschina-webhook [options]

    Options:

        -h, --help                     output usage information
        -V, --version                  output the version number
        -p, --port [port]              Set the port number to use. Defaults to 9001
        -c, --configfile [configfile]  Set the path to the config file to be used. Default to ./webhook.json
        -d, --daemon                   Run the oschina-webhook as a deamon
        -s, --stop                     Stop oschina-webhook that was run as a deamon
        -l, --log <log>                Where to log

## 配置
默认webhook.json配置文件

  {
    "log":"/Users/zzz/Documents/zz_work/oschina-webhook/1.log",
    "deploy": {
      "basepath": "/Users/zzz/Documents/zz_work/oschina-webhook",
      "command": "./1.sh"
    }
  }
  