Disabling SQS support in production.
This commit is contained in:
parent
ce8efa9409
commit
986f8e16b0
|
@ -28,6 +28,11 @@ import * as jsRunner from "./jsRunner"
|
|||
|
||||
let STARTUP_RAN = false
|
||||
|
||||
if (env.isProd() && env.SQS_SEARCH_ENABLE) {
|
||||
console.error("Stopping service - SQS search support is not yet available.")
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
async function initRoutes(app: Koa) {
|
||||
if (!env.isTest()) {
|
||||
const plugin = await bullboard.init()
|
||||
|
|
Loading…
Reference in New Issue