hardlounge/app.js

14 lines
262 B
JavaScript
Raw Normal View History

2014-03-04 16:31:52 +00:00
var argv = require("commander")
.option("-p, --port <n>", "port to use", parseInt)
2014-03-04 21:50:43 +00:00
.parse(process.argv);
2014-03-04 16:31:52 +00:00
PORT = 80; // Default port.
if (argv.port) {
PORT = argv.port;
}
// Run the server!
var Server =
new (require("./lib/server.js"))()
.listen(PORT);