diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts index e2afeb3e5..352df307e 100644 --- a/apps/api/src/lib/common.ts +++ b/apps/api/src/lib/common.ts @@ -17,7 +17,7 @@ import { day } from './dayjs'; import { saveBuildLog } from './buildPacks/common'; import { scheduler } from './scheduler'; -export const version = '3.11.5'; +export const version = '3.11.6'; export const isDev = process.env.NODE_ENV === 'development'; const algorithm = 'aes-256-ctr'; diff --git a/apps/api/src/lib/services.ts b/apps/api/src/lib/services.ts index df3c44e54..17086fa8a 100644 --- a/apps/api/src/lib/services.ts +++ b/apps/api/src/lib/services.ts @@ -22,15 +22,22 @@ const compareSemanticVersions = (a: string, b: string) => { return b1.length - a1.length; }; export async function getTags(type: string) { - if (type) { - const tagsPath = isDev ? './tags.json' : '/app/tags.json'; - const data = await fs.readFile(tagsPath, 'utf8') - let tags = JSON.parse(data) - if (tags) { - tags = tags.find((tag: any) => tag.name.includes(type)) - tags.tags = tags.tags.sort(compareSemanticVersions).reverse(); - return tags + + try { + if (type) { + const tagsPath = isDev ? './tags.json' : '/app/tags.json'; + const data = await fs.readFile(tagsPath, 'utf8') + let tags = JSON.parse(data) + if (tags) { + tags = tags.find((tag: any) => tag.name.includes(type)) + tags.tags = tags.tags.sort(compareSemanticVersions).reverse(); + return tags + } } + } catch (error) { + return [] + } - return [] + + } diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.ts index 56ffb2e1f..f0be78133 100644 --- a/apps/api/src/lib/services/handlers.ts +++ b/apps/api/src/lib/services/handlers.ts @@ -34,7 +34,8 @@ export async function startService(request: FastifyRequest, fa const { id } = request.params; const teamId = request.user.teamId; const service = await getServiceFromDB({ id, teamId }); - const arm = isARM(process.arch); + console.log({service}) + const arm = isARM(service.arch); const { type, destinationDockerId, destinationDocker, persistentStorage, exposePort } = service; @@ -128,7 +129,6 @@ export async function startService(request: FastifyRequest, fa labels: makeLabelForServices(type), ...defaultComposeConfiguration(network), } - console.log(config[s].image) // Generate files for builds if (template.services[s]?.files?.length > 0) { diff --git a/apps/ui/src/lib/components/UpdateAvailable.svelte b/apps/ui/src/lib/components/UpdateAvailable.svelte index 5eeacab8b..802b57b49 100644 --- a/apps/ui/src/lib/components/UpdateAvailable.svelte +++ b/apps/ui/src/lib/components/UpdateAvailable.svelte @@ -1,7 +1,14 @@ -
+
{#if index === 0 || length === 0} - + {/if}
{#if index === 0 || length === 0} - + {/if}
{#if index === 0 || length === 0} - + {/if} - +