Skip to content

Commit 76c1267

Browse files
committed
more debugging
1 parent df6d2cb commit 76c1267

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

dist/index.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/coolify.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,11 @@ export default class Coolify {
413413
ephemeral: boolean
414414
}) {
415415
const existingServices = await listServices({ client: this.client })
416-
console.log(`Existing services: ${JSON.stringify(existingServices.data)}`)
416+
console.log(
417+
`Existing services: ${JSON.stringify(
418+
existingServices.data?.map((service) => service.name)
419+
)}`
420+
)
417421
console.log(`Supabase component name: ${supabaseComponentName}`)
418422
const existingSupabaseService = existingServices.data?.find(
419423
(service) => service.name === supabaseComponentName
@@ -462,7 +466,7 @@ export default class Coolify {
462466
}
463467
backendServiceUUID = backendService.data.uuid
464468

465-
await updateServiceByUuid({
469+
const ret = await updateServiceByUuid({
466470
client: this.client,
467471
path: {
468472
uuid: backendServiceUUID
@@ -480,6 +484,7 @@ export default class Coolify {
480484
Buffer.from(updatedDockerCompose).toString('base64')
481485
}
482486
})
487+
console.log(`Update service response: ${JSON.stringify(ret)}`)
483488

484489
// Generate a random 64-character deployment key
485490
const deploymentKey = randomBytes(32).toString('hex')

0 commit comments

Comments
 (0)