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>
$ pm2 startup <ubuntu|centos|gentoo|systemd>
What can I do?
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 :)
Source: https://habr.com/ru/post/1205902/More articles:Objective-C specialized memory allocator for all objects - memory-managementHow to start the "install as" setting (wallpaper, contact image, etc.) - androidIs libsasl2 broken on OSX Yosemite? Missing sasl_client_done - cPython intersection of two duplicate lists - pythonAlgorithm for drawing a signal from audio - c ++Grunt Watch event with rough copy only for modified files - workflowCan I write tests for invalid lifetimes? - testingHow to use pm2 launch command on Debian platform? - linuxHow to get longer iOS console logs from Xcode 6? - iosSymfony2: Warning: spl_object_hash () expects parameter 1 to be an object, integer - phpAll Articles