Disabling SQS support in production.
This commit is contained in:
parent
ce8efa9409
commit
986f8e16b0
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,11 @@ import * as jsRunner from "./jsRunner"
|
||||||
|
|
||||||
let STARTUP_RAN = false
|
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) {
|
async function initRoutes(app: Koa) {
|
||||||
if (!env.isTest()) {
|
if (!env.isTest()) {
|
||||||
const plugin = await bullboard.init()
|
const plugin = await bullboard.init()
|
||||||
|
|
Loading…
Reference in a new issue