gploy
Version:
A continuous deployment server for automatic development
24 lines (20 loc) • 676 B
JavaScript
var gPloy = require(gPloyLibs + "/gPloy");
module.exports = function() {
gPloy.isRunning(function(err, running) {
if (err) {
console.log(" Error getting the worker status".red);
console.log(err.message.red);
console.log(err.stack);
process.exit(-1);
}
if (running === false) {
gPloy.setup();
console.log(" gploy isnt running in the moment".green);
gPloy.startInBackground();
} else {
gPloy.killBackground();
gPloy.startInBackground();
console.log(" gploy restarted".green);
}
});
}