Merge pull request #4315 from overleaf/jpa-import-ce-scripts

[scripts] import scripts from server-ce and add tests

GitOrigin-RevId: 07e7e15aa86030ccd3eca40ed40e5492622dc2d1
This commit is contained in:
Jakob Ackermann
2021-07-14 12:55:08 +02:00
committed by Copybot
parent 8066668cf2
commit 8742a29d80
10 changed files with 264 additions and 1 deletions
@@ -0,0 +1,12 @@
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)
})