UNPKG

gploy

Version:

A continuous deployment server for automatic development

21 lines (18 loc) 613 B
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 { console.log(" gploy is running in the moment".yellow); } }); }