Read the statement by Michael Teeuw here.
Loading multiple instances when MM2 is in Docker container
-
@WiredRacing in linux the detach is a & as the last character of a command
export MM_CONFIG_FILE=…
npm start server &
export MM_CONFIG_FILE=…
npm start &one as server only one as full, just for example
in windows its
set MM_CONFIG_FILE=
detach npm run server
set MM_CONFIG_FILE=
npm startalso, not related to docker. docker container is a linux instance
if using pm2, you do NOT want to detach the last one, as the script will end, and pm2 will try to restart it
maybe same in the docker startup
-
and i’ll add, the right way using docker is to spin up another container
-
@WiredRacing did you get this working?
-
@sdetweil Ahh, thanks for the education on the &. Working now!
Note: I wrote this a couple days ago, just didn’t click ‘submit’. :)
-
-
@WiredRacing awesome