2

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.

Michael Seltene
  • 543
  • 1
  • 5
  • 17

1 Answers1

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