wait-for-it
wait-for-it copied to clipboard
Is it possible to wait for a specific path?
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.
Use
wait-for-it http://my-domain:80/api/bacon -- command
@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
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.