Log proxy connection errors rather than killing server.

Don't have accurate repro for when they occur.
This commit is contained in:
Simon Howe
2016-01-04 16:40:02 +01:00
parent 372c611873
commit 22247130d3

View File

@@ -37,6 +37,10 @@ var proxy = httpProxy.createProxy({
target: 'http://' + BACKEND_HOST
});
proxy.on('error', function(err) {
console.error('Proxy error', err);
});
app.all('/api*', proxy.web.bind(proxy));
// Serve index page