Running a node.js server in Windows. I need the server to auto launch on startup-boot, followed by launching a standalone application. can anyone tell me the best way of accomplishing this?
Asked
Active
Viewed 1,982 times
1
-
Look at this http://stackoverflow.com/a/20724855 – mul14 Sep 04 '14 at 20:36
1 Answers
0
You'll want to run node as a Windows Service. Services start right after boot, before login.
As far as launching the standalone app, the answer depends on what it is. If it's a GUI app, you'll need to configure Windows to automatically log in, then you can just put it in the Startup folder. If it doesn't have a GUI, you can just use child_process
to spawn the app from node.

josh3736
- 139,160
- 33
- 216
- 263