archive
/
tstatic
Archived
1
Fork 0

Make it run as node

This commit is contained in:
Jake Howard 2017-02-20 08:45:14 +00:00
parent e862a0d153
commit 0892f0a7d0
1 changed files with 3 additions and 2 deletions

View File

@ -1,11 +1,12 @@
#!/usr/bin/env node
import { docopt } from 'docopt';
import createServer from './server';
import getArgs from './cli';
import * as open from 'open';
console.log("Starting Server...");
const ARGS = getArgs();
console.log("Starting Server...");
const app = createServer(ARGS);
export const server = app.listen(ARGS.port, function () {