diff --git a/src/lib/cli.js b/src/lib/cli.js index 76503f09a..b25e23431 100644 --- a/src/lib/cli.js +++ b/src/lib/cli.js @@ -172,6 +172,10 @@ function afterConfigLoad() { webServer = http.createServer(app); } + if (addr.path) { + fs.unlinkSync(addr.path); + } + webServer .listen(addr.port || addr.path, addr.host) .on('error', function(err) {