hooks-deploy

0.1.4 • Public • Published

Hooks deploy

npm version

The script for deploying apps via hooks.

Dependencies:

  • node.js
  • git
  • tar

Usage

Installing:

$ npm install -g hooks-deploy

Running:

$ hooks-deploy

For usage you should send HTTP POST request to your server with body.

Body example:

{
  "name":"foo",
  "repository": "https://*",
  "branch": "master"
}

You can do it with curl:

$ curl \
    -X POST \
    -d '{"name":"foo","repository": "https://*","branch": "master"}' \
    --url http://localhost:7999/

Configuration file example:

{
  "port": 7999,
  "hooks": [
    {
      "name": "foo",
      "path": "/mnt/sda/",
      "cmd": "node app.js"
    }
  ]
}

Package Sidebar

Install

npm i hooks-deploy

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • skhokhlov