mirror of
https://github.com/thelounge/thelounge
synced 2024-11-29 07:20:25 +00:00
13 lines
261 B
JavaScript
13 lines
261 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!
|
|
var Server =
|
|
new (require("./lib/server.js"))()
|
|
.listen(PORT);
|