mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 05:08:18 +00:00
exit if mock servers fail to start
This commit is contained in:
parent
0d02332be8
commit
dcdcbd8388
2 changed files with 8 additions and 1 deletions
|
@ -8,5 +8,8 @@ module.exports = MockDocUpdaterApi =
|
|||
|
||||
app.listen 3003, (error) ->
|
||||
throw error if error?
|
||||
.on "error", (error) ->
|
||||
console.error "error starting MockDocUpdaterApi:", error.message
|
||||
process.exit(1)
|
||||
|
||||
MockDocUpdaterApi.run()
|
||||
|
|
|
@ -24,6 +24,10 @@ module.exports = MockDocStoreApi =
|
|||
|
||||
app.listen 3016, (error) ->
|
||||
throw error if error?
|
||||
.on "error", (error) ->
|
||||
console.error "error starting MockDocStoreApi:", error.message
|
||||
process.exit(1)
|
||||
|
||||
MockDocUpdaterApi.run()
|
||||
|
||||
MockDocStoreApi.run()
|
||||
|
||||
|
|
Loading…
Reference in a new issue