From f0d89f850e918ae0df847cd92ea0b2a239b60504 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 21 Feb 2023 12:45:22 +0100 Subject: [PATCH] fix --- apps/api/src/lib/common.ts | 2 +- apps/api/src/lib/services/handlers.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts index 00bfa671c..ab90b3a53 100644 --- a/apps/api/src/lib/common.ts +++ b/apps/api/src/lib/common.ts @@ -1048,7 +1048,7 @@ export function generateDatabaseConfiguration(database: any): DatabaseConfigurat } export function isARM() { const arch = process.arch; - if (arch === 'arm' || arch === 'arm64') { + if (arch === 'arm' || arch === 'arm64' || arch === 'aarch' || arch === 'aarch64') { return true; } return false; diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.ts index 046cd2fb4..7db1df3e0 100644 --- a/apps/api/src/lib/services/handlers.ts +++ b/apps/api/src/lib/services/handlers.ts @@ -82,13 +82,14 @@ export async function startService(request: FastifyRequest, fa } } } + console.log({ newEnvironments }) const customVolumes = await prisma.servicePersistentStorage.findMany({ where: { serviceId: id } }) let volumes = new Set() if (arm && template.services[s]?.volumesArm?.length > 0) { template.services[s].volumesArm.forEach(v => volumes.add(v)) } if (!arm && template.services[s]?.volumes?.length > 0) { - template.services[s]?.volumes && template.services[s].volumes.length > 0 && template.services[s].volumes.forEach(v => volumes.add(v)) + template.services[s].volumes.forEach(v => volumes.add(v)) } // Workaround: old plausible analytics service wrong volume id name