Skip to content

Commit 41ea7d4

Browse files
committed
Correctly handle cases where fronted build is not finished...
1 parent 8011673 commit 41ea7d4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ export default class Coolify {
154154
}
155155
})
156156
if (serviceStatus.data && 'status' in serviceStatus.data) {
157-
if (serviceStatus.data['status'] === 'running:healthy') {
157+
if (
158+
serviceStatus.data['status'] === 'running:healthy' ||
159+
serviceStatus.data['status'] === 'finished'
160+
) {
158161
clearInterval(interval)
159162
clearTimeout(expirationTimeout)
160163
resolve(true)

0 commit comments

Comments
 (0)