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

wait-for-it.sh file if downloaded and unzipped using winrar - creates problem

Open inspiraller opened this issue 5 years ago • 1 comments

If using windows operating system this may cause a problem. Desite supplying a command with host and port as below:

When using command in docker-compose

    command: ["/wait-for-it.sh", "myservice:4444", "npm", "test"]

error

"Error: you need to provide a host and port to test."

Solution, download file manually by clicking 'raw' on github and downloading it.

inspiraller avatar Dec 04 '19 09:12 inspiraller

You need to add in the "--" before the command you want to run. For example:

command: ["/wait-for-it.sh", "myservice:4444", "--", "npm", "test"]

garethrandall avatar Dec 05 '19 18:12 garethrandall