Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skhokhlov/hooks-deploy
The script for deploying apps via hooks
https://github.com/skhokhlov/hooks-deploy
Last synced: about 1 month ago
JSON representation
The script for deploying apps via hooks
- Host: GitHub
- URL: https://github.com/skhokhlov/hooks-deploy
- Owner: skhokhlov
- Created: 2015-07-22T10:22:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-26T17:39:27.000Z (over 9 years ago)
- Last Synced: 2024-04-27T02:01:57.485Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hooks deploy
[![npm version](https://badge.fury.io/js/hooks-deploy.svg)](http://badge.fury.io/js/hooks-deploy)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:
```json
{
"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:
```json
{
"port": 7999,
"hooks": [
{
"name": "foo",
"path": "/mnt/sda/",
"cmd": "node app.js"
}
]
}
```