Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 491 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 491 Bytes

Deployer

A simple Express application that solves "push to deploy".

Add a webhook to http://<domain/IP>/deploy/ inside the repository's settings on GitHub.

This is what a service might look like:

module.exports = {
	"<service-name>": {
		secret: "<the-secret-that-is-defined-in-repo-settings>",
		"path": "<folder-on-the-server>",
		"repo": "<repo-ssh-url>",
		"branch": "master",
		"pm2": true,
		"commands": [
			"npm test",
			"npm install"
		]
	}
}