cloudcms-cli
Version:
Cloud CMS Command-Line client
28 lines (23 loc) • 618 B
JavaScript
var path = require("path");
var helper = require("../../../helper");
var AbstractCommand = require("../../abstract");
class StartServerCommand extends AbstractCommand
{
constructor()
{
super({
"group": "server",
"name": "start",
"description": "Starts the Application Server"
});
}
handle(options, callback)
{
// call workhorse function
var appServerBasePath = path.resolve(".");
helper.startServer(appServerBasePath, function(err) {
callback(err);
});
}
}
module.exports = StartServerCommand;