mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 00:24:22 +08:00
18 lines
580 B
JavaScript
Executable File
18 lines
580 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const program = require('./commander');
|
|
const serve = require('../serve');
|
|
|
|
//==============================================================================
|
|
// Setting up the program command line arguments.
|
|
//==============================================================================
|
|
|
|
program
|
|
.option('-j, --jobs', 'enable job processing on this thread')
|
|
.option('-w, --websockets', 'enable the websocket (subscriptions) handler on this thread')
|
|
.parse(process.argv);
|
|
|
|
// Start serving.
|
|
serve({jobs: program.jobs, websockets: program.websockets});
|
|
|