fix
This commit is contained in:
parent
b777e08542
commit
f0d89f850e
@ -1048,7 +1048,7 @@ export function generateDatabaseConfiguration(database: any): DatabaseConfigurat
|
|||||||
}
|
}
|
||||||
export function isARM() {
|
export function isARM() {
|
||||||
const arch = process.arch;
|
const arch = process.arch;
|
||||||
if (arch === 'arm' || arch === 'arm64') {
|
if (arch === 'arm' || arch === 'arm64' || arch === 'aarch' || arch === 'aarch64') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -82,13 +82,14 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log({ newEnvironments })
|
||||||
const customVolumes = await prisma.servicePersistentStorage.findMany({ where: { serviceId: id } })
|
const customVolumes = await prisma.servicePersistentStorage.findMany({ where: { serviceId: id } })
|
||||||
let volumes = new Set()
|
let volumes = new Set()
|
||||||
if (arm && template.services[s]?.volumesArm?.length > 0) {
|
if (arm && template.services[s]?.volumesArm?.length > 0) {
|
||||||
template.services[s].volumesArm.forEach(v => volumes.add(v))
|
template.services[s].volumesArm.forEach(v => volumes.add(v))
|
||||||
}
|
}
|
||||||
if (!arm && template.services[s]?.volumes?.length > 0) {
|
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
|
// Workaround: old plausible analytics service wrong volume id name
|
||||||
|
Loading…
Reference in New Issue
Block a user