mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 06:34:21 +00:00
12 lines
No EOL
239 B
JavaScript
12 lines
No EOL
239 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;
|
|
}
|
|
|
|
var server =
|
|
new (require("./lib/server.js"))()
|
|
.listen(PORT); |