mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Help @mattwr18 to debug the subprocesses
This commit is contained in:
parent
47e9e52a84
commit
5dbe5b16a4
@ -20,6 +20,11 @@ const setup = async function () {
|
||||
})
|
||||
})
|
||||
|
||||
server.stdout.on('data', data => console.log(`server stdout:\n${data}`))
|
||||
server.stderr.on('data', data => console.log(`server stderr:\n${data}`))
|
||||
seeder.stdout.on('data', data => console.log(`seeder stdout:\n${data}`))
|
||||
seeder.stderr.on('data', data => console.log(`seeder stderr:\n${data}`))
|
||||
|
||||
try {
|
||||
await waitOn({
|
||||
resources: ['http://localhost:4123', 'http://localhost:4001']
|
||||
@ -30,7 +35,8 @@ const setup = async function () {
|
||||
}
|
||||
|
||||
const teardown = async function () {
|
||||
[server, seeder].forEach(app => app.kill())
|
||||
server.kill()
|
||||
seeder.kill()
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user