Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to wait for a specific path? #107

Open
raschmitt opened this issue Mar 27, 2021 · 3 comments
Open

Is it possible to wait for a specific path? #107

raschmitt opened this issue Mar 27, 2021 · 3 comments

Comments

@raschmitt
Copy link

raschmitt commented Mar 27, 2021

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.

@brendtumi
Copy link

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

@raschmitt
Copy link
Author

raschmitt commented Apr 1, 2021

@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

@brendtumi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants