Get server/worker tests to run.
This commit is contained in:
parent
4daa996044
commit
4ca9ea97b6
|
@ -11,6 +11,7 @@ function runServer() {
|
||||||
process.env.GLOBAL_AGENT_FORCE_GLOBAL_AGENT = "false"
|
process.env.GLOBAL_AGENT_FORCE_GLOBAL_AGENT = "false"
|
||||||
bootstrap()
|
bootstrap()
|
||||||
require("./app")
|
require("./app")
|
||||||
|
console.log("test")
|
||||||
}
|
}
|
||||||
|
|
||||||
runServer()
|
runServer()
|
||||||
|
|
|
@ -109,6 +109,7 @@ export default server.listen(parseInt(env.PORT || "4002"), async () => {
|
||||||
console.log(`Worker running on ${JSON.stringify(server.address())}`)
|
console.log(`Worker running on ${JSON.stringify(server.address())}`)
|
||||||
await initPro()
|
await initPro()
|
||||||
await redis.init()
|
await redis.init()
|
||||||
|
console.log("test")
|
||||||
})
|
})
|
||||||
|
|
||||||
process.on("uncaughtException", err => {
|
process.on("uncaughtException", err => {
|
||||||
|
|
Loading…
Reference in New Issue