We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78f82ae + fd46530 commit c5f17b1Copy full SHA for c5f17b1
localdev/nats-provision/src/main.ts
@@ -19,11 +19,13 @@ async function main() {
19
// Wait for external services to be available
20
console.log('waiting for NATS server...', `tcp:${natsServer}`);
21
await waitOn({
22
- resources: [`tcp:${natsServer}`, KEYCLOAK_URL, APP_URL],
+ resources: [`tcp:${natsServer}`, `${KEYCLOAK_URL}/health/ready`, APP_URL],
23
delay: 1000,
24
window: 5000,
25
});
26
27
+ console.log('All services are ready.')
28
+
29
const nc = await connect({ servers: natsServer });
30
const jc = JSONCodec();
31
0 commit comments