I have micorosoft windows server 2012 r2 and I have nodejs as web and api server and I want to deply it in production mode. But my question is should i install forever npm module and set to production mode and run via command prompt and may be write .bat file to execute on start up or iisnode is a better idea.
Asked
Active
Viewed 1,015 times
1 Answers
1
I think that iisnode is a better idea. Host using IIS is better than let a nodejs prompt always opened, running your server, with a danger of someone close or do something that you don't want. I always use iisnode and is very simple, look at Github page.

Fernando Paz
- 532
- 6
- 19
-
Thank you. Will use iisnode. – Michael Seltene Jan 19 '18 at 12:31
-
I would say either. I would recommend using a process manager for this one, like forever, pm2, nodemon, and drop the iisnode, as that technology is out of support these days. – HellBaby Oct 04 '22 at 17:51