1.0.3 • Published 5 years ago

simplestci v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Simplest GIT CI System for NodeJS project

Simplest way to synchronize GIT repository with production build on server.

Usage

npm install simplestci --save

Add following lines to your main app-entry-point script e.g. server.js

Code below assumes that server.js been added to pm2 to keep it alive, but you can use any other tool for that.

const commands = "git pull && npm install && pm2 restart server"
const port = 17324
const secretlink = '/themostserctetlinkever'
const sci = require('simplestci')(commands,port,secretlink)

Specify commands that fits your deployment flow.

Add weeb hook in github settings to yourdomain.com:port/themostserctetlinkever

Contribution

Lets find eaisier and more universal ways together. Current version was just my quick personal workaround on the topic. You are welcome to push any updates here.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago