I am trying to use pm2 on Heroku. I looked at the documentation here: http://pm2.keymetrics.io/docs/usage/use-pm2-with-cloud-providers/#heroku-google-app-engine-azure
It looks like the application works fine after deployment. And the logs show that multiple instances are running on 2X dyno.
However, when I run: heroku run bash and do pm2 ls I get an empty list:
ββββββββββββ¬βββββ¬βββββββ¬ββββββ¬βββββββββ¬ββββββββββ¬βββββββββ¬βββββββββ¬βββββββββββ β App name β id β mode β pid β status β restart β uptime β memory β watching β ββββββββββββ΄βββββ΄βββββββ΄ββββββ΄βββββββββ΄ββββββββββ΄βββββββββ΄βββββββββ΄βββββββββββ
And I can not use any CLI pm2 functions.
I understand that when I make the heroku run command, a one-time speaker is created on the fly, and the pm2 instance running on this dino does not start any process.
However, I do not see how I can access pm2 on a specific dyno.
Can i use pm2 cli on Heroku?
adc06 source share