# stunt-deployer-server

> Minimalist nodejs server for automatic deployment

Latest version **1.0.1** (published 2017-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install stunt-deployer-server
pnpm add stunt-deployer-server
yarn add stunt-deployer-server
bun add stunt-deployer-server
```

Provides the command `stunt-deployer-server`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-10-16 |
| First published | 2017-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | StuntCoders |
| Maintainers | mladenilic |

## Links

- npm: https://www.npmjs.com/package/stunt-deployer-server
- Repository: https://github.com/stuntcoders/stunt_deployer_server
- Homepage: https://github.com/stuntcoders/stunt_deployer_server#readme
- Issues: https://github.com/stuntcoders/stunt_deployer_server/issues
- npm.io page: https://npm.io/package/stunt-deployer-server

## Dependencies (3)

- [connect](https://npm.io/package/connect.md) ^3.6.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.7.7
- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Recent versions

- 1.0.1 (latest) — 2017-10-16
- 1.0.0 — 2017-10-16
- 0.3.0 — 2017-06-03
- 0.2.3 — 2017-04-30
- 0.2.2 — 2017-04-30
- 0.2.1 — 2017-04-30
- 0.2.0 — 2017-04-30
- 0.1.1 — 2017-04-30
- 0.1.0 — 2017-04-30

## README

# StuntCoders Deployer Server - [![npm version](https://badge.fury.io/js/stunt-deployer-server.svg)](https://badge.fury.io/js/stunt-deployer-server)
Minimalist nodejs server for automatic deployment

## Install
```sh
npm install --global stunt-deployer-server
```

## Usage
```sh
stunt-deployer-server [--hooks <path_to_hooks_json>] [--port <server_port>]
```
Default port: 3000

## Configuring deployment hooks
All deployment hoos are defined in **hooks.json** file.
```json
{
	"unique-hook-name": {
		"cwd": "./path-to-deploy-script",
		"exec": "bash deploy.sh"
	}
}
```
Hitting `http://example.com:3000/unique-hook-name` will trigger deployment script.

## Run deployer server as a service
First create `/etc/systemd/system/stunt-deployer-server.service`
```
[Unit]
Description=StuntCoders Deployment Server

[Service]
WorkingDirectory=/root/stunt_deployer/
ExecStart=/usr/local/bin/stunt-deployer-server --hooks /root/stunt_deployer/hooks.json
Restart=always

[Install]
WantedBy=multi-user.target
```

Then start the service
```
systemctl daemon-reload
systemctl enable stunt-deployer-server
systemctl start stunt-deployer-server
```

## Licence
Licensed under the MIT license.

---
_Source: https://npm.io/package/stunt-deployer-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
