Closed gkotian closed 4 years ago
Could wait
work for your case?
wait-for-it.sh foo &
wait-for-it.sh bar &
wait-for-it.sh baz &
wait
That's a good idea. I'll give it a shot.
I'm sorry that I haven't been able to test this out yet. I will close this issue for now, and reopen if necessary whenever I manage to start looking into this again.
Having quickly skimmed through the script, I couldn't find a way to wait for multiple host+port combinations to be ready. Any pointers on the best way to do this? One way I can imagine is one
wait-for-it
starting anotherwait-for-it
.This is probably not a common situation, but in my case I need to wait for two independent databases to get ready before launching my app.