Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: debug log for bp

Andras Bacsaid8ce673088e6
diff --git a/apps/api/src/lib/buildPacks/heroku.ts b/apps/api/src/lib/buildPacks/heroku.ts
index 4a0d77340e..c9608aba2f 100644
--- a/apps/api/src/lib/buildPacks/heroku.ts
+++ b/apps/api/src/lib/buildPacks/heroku.ts
@@ -5,34 +5,13 @@ export default async function (data: any): Promise<void> {
const { buildId, applicationId, tag, dockerId, debug, workdir, baseDirectory } = data
try {
await saveBuildLog({ line: `Building image started.`, buildId, applicationId });
- const { stdout } = await executeDockerCmd({
+ await executeDockerCmd({
+ debug,
dockerId,
command: `pack build -p ${workdir}${baseDirectory} ${applicationId}:${tag} --builder heroku/buildpacks:20`
})
- if (debug) {
- const array = stdout.split('\n')
- for (const line of array) {
- if (line !== '\n') {
- await saveBuildLog({
- line: `${line.replace('\n', '')}`,
- buildId,
- applicationId
- });
- }
- }
- }
await saveBuildLog({ line: `Building image successful.`, buildId, applicationId });
} catch (error) {
- const array = error.stdout.split('\n')
- for (const line of array) {
- if (line !== '\n') {
- await saveBuildLog({
- line: `${line.replace('\n', '')}`,
- buildId,
- applicationId
- });
- }
- }
throw error;
}
}