mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
13 lines
277 B
JavaScript
13 lines
277 B
JavaScript
|
const { waitForDb } = require('../../../app/src/infrastructure/mongodb')
|
||
|
|
||
|
waitForDb()
|
||
|
.then(() => {
|
||
|
console.error('Mongodb is up.')
|
||
|
process.exit(0)
|
||
|
})
|
||
|
.catch(err => {
|
||
|
console.error('Cannot connect to mongodb.')
|
||
|
console.error(err)
|
||
|
process.exit(1)
|
||
|
})
|