wait-for-it icon indicating copy to clipboard operation
wait-for-it copied to clipboard

Is it possible to wait for a specific path?

Open raschmitt opened this issue 4 years ago • 3 comments

I am using a reverse proxy where a lot of services are located under the same domain on different paths.

my-domain/api/bacon
my-domain/api/potato

And I would like to wait for each of these services individually.

Would it be possible to do something like:

wait-for-it my-domain:80/api/bacon

I've tryed some variations of it and all of them fail.

raschmitt avatar Mar 27 '21 02:03 raschmitt

Use wait-for-it http://my-domain:80/api/bacon -- command

brendtumi avatar Mar 31 '21 20:03 brendtumi

@brendtumi it simply ignores the path and times out, even though my path is working just fine if I curl it.

$ wait-for-it http://127.0.0.1:8001/bacon

wait-for-it: waiting 15 seconds for http://127.0.0.1
wait-for-it: timeout occurred after waiting 15 seconds for http://127.0.0.1

raschmitt avatar Apr 01 '21 02:04 raschmitt

Sorry my bad, you may use https://github.com/Eficode/wait-for for url usage, this library only support availability of a host and TCP port.

brendtumi avatar Apr 03 '21 08:04 brendtumi