From ee65deebfd71edb2f08abf04566de2cacf665320 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sat, 4 Mar 2023 18:05:01 +0100 Subject: [PATCH 1/4] fix: nestjs buildpack --- apps/api/src/lib/buildPacks/nestjs.ts | 2 +- apps/api/src/lib/common.ts | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/lib/buildPacks/nestjs.ts b/apps/api/src/lib/buildPacks/nestjs.ts index a5efc2286..ba98b70ef 100644 --- a/apps/api/src/lib/buildPacks/nestjs.ts +++ b/apps/api/src/lib/buildPacks/nestjs.ts @@ -2,7 +2,7 @@ import { promises as fs } from 'fs'; import { buildCacheImageWithNode, buildImage } from './common'; const createDockerfile = async (data, image): Promise => { - const { buildId, applicationId, tag, port, startCommand, workdir, baseDirectory } = data; + const { buildId, applicationId, tag, port, startCommand, workdir, publishDirectory } = data; const Dockerfile: Array = []; const isPnpm = startCommand.includes('pnpm'); diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts index 67d8775e7..dece21e06 100644 --- a/apps/api/src/lib/common.ts +++ b/apps/api/src/lib/common.ts @@ -19,7 +19,7 @@ import { saveBuildLog, saveDockerRegistryCredentials } from './buildPacks/common import { scheduler } from './scheduler'; import type { ExecaChildProcess } from 'execa'; -export const version = '3.12.23'; +export const version = '3.12.24'; export const isDev = process.env.NODE_ENV === 'development'; export const proxyPort = process.env.COOLIFY_PROXY_PORT; export const proxySecurePort = process.env.COOLIFY_PROXY_SECURE_PORT; diff --git a/package.json b/package.json index 4da878fce..5b3749ebc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "coolify", "description": "An open-source & self-hostable Heroku / Netlify alternative.", - "version": "3.12.23", + "version": "3.12.24", "license": "Apache-2.0", "repository": "github:coollabsio/coolify", "scripts": { From 9b13912b6d7967b2eeb9f27f91be399e885a849c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sat, 4 Mar 2023 18:48:28 +0100 Subject: [PATCH 2/4] Update common.ts --- apps/api/src/lib/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts index dece21e06..0014f793e 100644 --- a/apps/api/src/lib/common.ts +++ b/apps/api/src/lib/common.ts @@ -19,7 +19,7 @@ import { saveBuildLog, saveDockerRegistryCredentials } from './buildPacks/common import { scheduler } from './scheduler'; import type { ExecaChildProcess } from 'execa'; -export const version = '3.12.24'; +export const version = '3.12.25'; export const isDev = process.env.NODE_ENV === 'development'; export const proxyPort = process.env.COOLIFY_PROXY_PORT; export const proxySecurePort = process.env.COOLIFY_PROXY_SECURE_PORT; From 507100ea0b66589746637c51d9cffe43efce7ea3 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sat, 4 Mar 2023 18:48:38 +0100 Subject: [PATCH 3/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5b3749ebc..2c79da20b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "coolify", "description": "An open-source & self-hostable Heroku / Netlify alternative.", - "version": "3.12.24", + "version": "3.12.25", "license": "Apache-2.0", "repository": "github:coollabsio/coolify", "scripts": { From 1190cb4ea1f57267193d0e359375315629d49553 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sat, 4 Mar 2023 18:49:34 +0100 Subject: [PATCH 4/4] Update deployApplication.ts --- apps/api/src/jobs/deployApplication.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/jobs/deployApplication.ts b/apps/api/src/jobs/deployApplication.ts index 8fb71cfe6..00805b832 100644 --- a/apps/api/src/jobs/deployApplication.ts +++ b/apps/api/src/jobs/deployApplication.ts @@ -406,7 +406,7 @@ import * as buildpacks from '../lib/buildPacks'; installCommand = configuration.installCommand; startCommand = configuration.startCommand; buildCommand = configuration.buildCommand; - publishDirectory = configuration.publishDirectory; + publishDirectory = configuration.publishDirectory || ''; baseDirectory = configuration.baseDirectory || ''; dockerFileLocation = configuration.dockerFileLocation; dockerComposeFileLocation = configuration.dockerComposeFileLocation;