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

run more than 2 server? #296

Open
johnico opened this issue Feb 1, 2021 · 2 comments
Open

run more than 2 server? #296

johnico opened this issue Feb 1, 2021 · 2 comments

Comments

@johnico
Copy link

johnico commented Feb 1, 2021

is it possible to run more than 2 servers? i have 3 dockers that I need to run

server-test docker run 1 {port} docker run 2 {port} docker run 3 {port} {test command}
but this does not work

@marklagendijk
Copy link

You can use the concurrently package to run multiple commands at the same time.
For the availability test you can use a | to separate multiple tests: "8080|http://foo.com"

@callumgare
Copy link

callumgare commented May 13, 2022

That works and I appreciate the workaround but it does mean one more dependence to install and keep up-to-date (assuming you're not already using concurrently). Is there any reason why this should be arbitrarily limited to 2 servers? If start-server-and-test already allows for more than one why not just make it arbitrary the amount of servers that can be run? It seems to me like the syntax already naturally lends itself to this and I can't see any conflicts this would cause (in fact I actually initially tried this assuming it would just work given that I knew it worked with 2 servers):

start-server-and-test <server1> <server1 test condition> [<server2> <server2 test condition> [...]] <test>

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

3 participants