How do I start two or more web servers within one task #502
Answered
by
andreynering
thesobercoder
asked this question in
Q&A
-
What is the canonical way to running two web servers with one task? I found a way, but not sure if this is the recommended way of doing it. version: '3'
silent: true
tasks:
run:
deps: [a, b] # This command has no run only deps to run both web servers parallelly
a:
cmds:
- go run a/main.go # webserver 1
b:
cmds:
- go run b/main.go # webserver 2 |
Beta Was this translation helpful? Give feedback.
Answered by
andreynering
Jun 13, 2021
Replies: 1 comment 1 reply
-
Hi @thesobercoder, Yes, this is the recommended way of doing it. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
thesobercoder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @thesobercoder,
Yes, this is the recommended way of doing it.