Starting mountebank as a pm2 cluster

67 views
Skip to first unread message

Shubhendu Madhukar

unread,
Apr 28, 2021, 7:55:32 AM4/28/21
to mountebank-discuss
I am trying to run mountebank using pm2 with following command:
pm2 start mb -i max -- --allowInjection --origin http://localhost:5000 --loglevel warn

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.
Reply all
Reply to author
Forward
0 new messages