Skip to content

Commit f854176

Browse files
committed
dbg
1 parent 41ea7d4 commit f854176

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

dist/index.js

Lines changed: 6 additions & 4 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: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,7 @@ export default class Coolify {
154154
}
155155
})
156156
if (serviceStatus.data && 'status' in serviceStatus.data) {
157-
if (
158-
serviceStatus.data['status'] === 'running:healthy' ||
159-
serviceStatus.data['status'] === 'finished'
160-
) {
157+
if (serviceStatus.data['status'] === 'running:healthy') {
161158
clearInterval(interval)
162159
clearTimeout(expirationTimeout)
163160
resolve(true)
@@ -170,7 +167,7 @@ export default class Coolify {
170167
})
171168
}
172169

173-
private async waitUntilAppIsReady({
170+
public async waitUntilAppIsReady({
174171
appUUID,
175172
sha,
176173
timeout_seconds
@@ -208,8 +205,17 @@ export default class Coolify {
208205
resolve(true)
209206
}
210207
} else {
211-
console.log('No status found')
212-
console.log(JSON.stringify(deployments.data, null, 2))
208+
console.log('No status found for SHA: ' + sha)
209+
console.log(
210+
JSON.stringify(
211+
deployments.data.deployments.map((d) => ({
212+
commit: d.commit,
213+
status: d.status
214+
})),
215+
null,
216+
2
217+
)
218+
)
213219
}
214220
}
215221

0 commit comments

Comments
 (0)