0.1.4 • Published 9 years ago

hooks-deploy v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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"
    }
  ]
}
0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago