thelounge/app.js
Mattias Erming 4cc34d6456 Refactoring
2014-03-06 07:11:25 -08:00

11 lines
237 B
JavaScript

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