Skip to content

Commit

Permalink
Boot up http server in cli (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jul 1, 2019
1 parent 984982f commit 0137deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

3 changes: 2 additions & 1 deletion packages/micro/bin/micro.js
@@ -1,6 +1,7 @@
#!/usr/bin/env node

// Native
const http = require('http');
const path = require('path');
const {existsSync} = require('fs');

Expand Down Expand Up @@ -194,7 +195,7 @@ function registerShutdown(fn) {
}

function startEndpoint(module, endpoint) {
const server = serve(module);
const server = new http.Server(serve(module));

server.on('error', err => {
console.error('micro:', err.stack);
Expand Down

0 comments on commit 0137deb

Please sign in to comment.