T
T
Torento203452021-06-13 12:54:15
Command line
Torento20345, 2021-06-13 12:54:15

How to run 2 or more servers on node with one command?

There are 3 servers in 3 different folders.
How can a command run all 3 of them, and not go into each one in turn and write npm run start?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Belyaev, 2021-06-13
@Torento20345

https://pm2.keymetrics.io/

P
Pavel Shvedov, 2021-06-13
@mmmaaak

Write a shell script consisting of three launch commands and run it with one command

A
Alexey Yarkov, 2021-06-13
@yarkov

npm-run-all package to use

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question