Make it run as node

This commit is contained in:
Jake Howard 2017-02-20 08:45:14 +00:00
parent e862a0d153
commit 0892f0a7d0

View file

@ -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 () {