Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I have been using WinSW to wrap my .exe with no issues. Using Wix I have been had been able to script the install of the service
Most of the issues with stopping and starting my services have been down to either port in use errors (which WinSW logs out very nicely) and lack of Administrator privileges (which is the same old Windows malarky)
As @crapthings points out, pm2 can handle binary code execution, and I've checked that the following does work (Windows):
However, cluster mode doesn't appear to work this way. For example, the following should start four processes/instances, but only starts one:
If that one process goes down, pm2 successfully brings it back up, but it never kicks off 4 processes. I'm probably misunderstanding something, but is it possible to package the pm2 logic within the Zeit PKG executable? Then, executing myzeitpkgapp.exe would essentially call "pm2 start ./main.js -i 4"...