I am trying to run mountebank using pm2 with following command:
However, the mb process ends up in the "errored" state. I have tried following other approaches:
1. Use ecosystem.config.js file.
2. Put the entire command i.e.
mb --allowInjection --origin http://localhost:5000 --loglevel warn, in a .bat file (I am on windows) and run the bat file instead of running mb directly.
If someone has already done this, would you be willing to share the pm2's ecosystem.config.js file?
PS: I don't have the pm2 logs handy. However, if I required, I can share it shortly.