marklagendijk / node-pm2-windows-startup

Utility to make PM2 automatically resurrect on Windows startup
MIT License
219 stars 24 forks source link

I like this. But I have a question. #1

Closed YoungsoonLee closed 9 years ago

YoungsoonLee commented 9 years ago

I like this. Thank you. But I have a question.

When I did pm2 save and windows server restarted , pm2 not started before login. How can i solve this problem?

I added this(wscript.exe "C:\Users\youngsoonl\AppData\Roaming\npm\node_modules\pm2-windows-startup\invisible.vbs" "C:\Users\youngsoonl\AppData\Roaming\npm\node_modules\pm2-windows-startup\pm2_resurrect.cmd") to registry into LOCAL_MACHINE , But It was not working when server restart automatically before login.

dlbrown06 commented 9 years ago

+1

I got so excited when I first found this module - only shortly to be let down finding out that in order for it to work the user had to login. Big let down. This could be a huge module for users forced to deploy node on windows too!

jancervinka commented 9 years ago

+1

Did anyone solve this?

dlbrown06 commented 9 years ago

Nope - Forever is working for me in production. If the PM2 folks ever get around to fixing this, I may switch back, the forever solution is working for me with no headaches or work arounds

marklagendijk commented 9 years ago

This is indeed an issue. I opened #2 to solve this.

jancervinka commented 9 years ago

Just FYI, for now I solved it using Autologon https://technet.microsoft.com/en-us/sysinternals/bb963905