From b709ad285a5d68fe3f953fbb541b3230f9ed10e2 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 25 Apr 2025 22:46:33 +0200 Subject: [PATCH] fix deployment of producer --- producer/src/controller.ts | 2 -- scripts/producer/deploy.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/producer/src/controller.ts b/producer/src/controller.ts index c275816..0309708 100644 --- a/producer/src/controller.ts +++ b/producer/src/controller.ts @@ -610,8 +610,6 @@ function isBot(userAgent: string) { export async function isAllowedToLog(project_id: string, website: string, ip: string, userAgent: string) { - console.log({ userAgent }); - const blacklistData = await AddressBlacklistModel.find({ project_id }, { address: 1 }); for (const blacklistedData of blacklistData) { if (blacklistedData.address == ip) return false; diff --git a/scripts/producer/deploy.ts b/scripts/producer/deploy.ts index dd223db..29d4e07 100644 --- a/scripts/producer/deploy.ts +++ b/scripts/producer/deploy.ts @@ -46,7 +46,7 @@ async function main() { const devContent = ecosystemContent .replace("$REDIS_URL$", `${REDIS_URL_PRODUCTION}`) .replace("$MONGO_CONNECTION_STRING$", `${DATABASE_CONNECTION_STRING_PRODUCTION}`) - .replace("$DEV_MODE$", `true`); + .replace("$DEV_MODE$", `false`); archive.append(Buffer.from(devContent), { name: '/ecosystem.config.js' }); }