The script for deploying apps via hooks.
Dependencies:
- node.js
- git
- tar
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"
}
]
}