Make it run as node
This commit is contained in:
parent
e862a0d153
commit
0892f0a7d0
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
import { docopt } from 'docopt';
|
import { docopt } from 'docopt';
|
||||||
import createServer from './server';
|
import createServer from './server';
|
||||||
import getArgs from './cli';
|
import getArgs from './cli';
|
||||||
import * as open from 'open';
|
import * as open from 'open';
|
||||||
|
|
||||||
console.log("Starting Server...");
|
|
||||||
|
|
||||||
const ARGS = getArgs();
|
const ARGS = getArgs();
|
||||||
|
|
||||||
|
console.log("Starting Server...");
|
||||||
const app = createServer(ARGS);
|
const app = createServer(ARGS);
|
||||||
|
|
||||||
export const server = app.listen(ARGS.port, function () {
|
export const server = app.listen(ARGS.port, function () {
|
||||||
|
|
Reference in a new issue