No need to bind to 0.0.0.0 when running in same container

This commit is contained in:
James Allen 2017-11-27 17:04:54 +00:00
parent 054964dd85
commit 3e90103d9c
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ module.exports = MockDocUpdaterApi =
app.post "/project/:project_id/flush", (req, res, next) =>
res.sendStatus 200
app.listen 3003, '0.0.0.0', (error) ->
app.listen 3003, (error) ->
throw error if error?
.on "error", (error) ->
console.error "error starting MockDocUpdaterApi:", error.message

View file

@ -22,7 +22,7 @@ module.exports = MockDocStoreApi =
docs = (doc for doc_id, doc of @docs[req.params.project_id])
res.send JSON.stringify docs
app.listen 3016, '0.0.0.0', (error) ->
app.listen 3016, (error) ->
throw error if error?
.on "error", (error) ->
console.error "error starting MockDocStoreApi:", error.message