hardlounge/app.js
2014-03-07 22:28:30 +01:00

14 lines
263 B
JavaScript

var commander = require("commander")
var listen = require("./lib/server.js").listen;
var argv = commander
.option("-p, --port <n>", "port to use", parseInt)
.parse(process.argv);
PORT = 80; // Default port
if (argv.port) {
PORT = argv.port;
}
listen(PORT);