mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
8742a29d80
[scripts] import scripts from server-ce and add tests GitOrigin-RevId: 07e7e15aa86030ccd3eca40ed40e5492622dc2d1
12 lines
277 B
JavaScript
12 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)
|
|
})
|