Minimalist automatic deployment server
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
deployer.js
hooks-sample.json
package.json

README.md

StuntCoders Deployer Server - npm version

Minimalist nodejs server for automatic deployment

Install

npm install --global stunt-deployer-server

Usage

stunt-deployer-server --hooks <path_to_hooks_json> [--port <server_port>] [--ssl_key <key_path>] [--ssl_cert <cert_path>] 

Default ports: 3000 (3443)

Configuring deployment hooks

All deployment hoos are defined in hooks.json file.

{
	"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.