hook-shell

0.1.1 • Public • Published

hook-shell

Git Hooks triggers execute the shell (deploy.sh)

Git Hooks 触发执行 Shell 脚本 (deploy.sh)

Installation - 安装

npm install hook-shell

Usage - 使用

var hs = require('hook-shell')
hs.add({
    // coding.net github.com oschina.net
    git: 'coding.net',
    user: 'nimojs',
    repo: 'paging',
    branch: 'master',
    event: 'push',
    // condig.net token or github.com secret
    password: 'x8wndh2',
    shell: './sh/nimojs-paging.sh'
})
 
hs.run({
    port: 1219,
    // http://www.your_domain.com/hook/
    hookurl: '/hook/'
})

Package Sidebar

Install

npm i hook-shell

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • nicotrue