Skip to content

MichaelElbert/test-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

test-server

This simple script (assuming forever is installed) updates and restarts a node.js server.

var exec = require('child_process').exec;

Include this and update.js in your main server file, and somehow reference it (for awakens, we will be running exec("node update.js") when a god runs the update command).

The script will then run, stopping all forever processes, pulling from the git repository, and starting server.js again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published