How to use pm2 launch command on mac?

My question is the same as How to use pm2 launch command on Debian platform? but i need to run it on mac os (darwin)

I found only the documentation with a large volume of $ pm2 startup <ubuntu|centos|gentoo|systemd>

What can I do?

+5
source share
1 answer

PM2 now has a darwin parameter to run, so it works:

 pm2 startup darwin 

must work.

Also check this commit: 1. Make automatic platform discovery. 2. Support for running darwin script. So, right now you can just call:

 pm2 startup 

and the script will recognize your OS.

NOTE. I am currently having problems with Yosemite since startd gives me an error. You can find more information (and a solution that works for me ) here: darwin startup script fix on yosemite # 989

Also, if you can test it in your environment and support this pull request, it would be great :)

+4
source

Source: https://habr.com/ru/post/1205902/


All Articles