Skip to content

Commit

Permalink
Merge branch 'master' into am-multi-predeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Memering committed Feb 7, 2019
2 parents 9c39975 + 05857c8 commit 0cd8308
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/serve/hosting.js
Expand Up @@ -13,9 +13,10 @@ var normalizedHostingConfigs = require("../hosting/normalizedHostingConfigs");

var MAX_PORT_ATTEMPTS = 10;
var _attempts = 0;
var server;

function _startServer(options, config, port, init) {
var server = superstatic({
server = superstatic({
debug: true,
port: port,
host: options.host,
Expand Down Expand Up @@ -65,6 +66,9 @@ function _startServer(options, config, port, init) {
}

function _stop() {
if (server) {
server.close();
}
return Promise.resolve();
}

Expand Down

0 comments on commit 0cd8308

Please sign in to comment.