Skip to content

Simplest way to sync updates in GIT repository with NodeJS production build on server.

License

Notifications You must be signed in to change notification settings

nickerlan/simplestci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simplest way to sync updates in GIT repository with NodeJS production build on server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published