Search code examples
node.jsiisforeveriisnode

Is it a good idea to use NodeJS terminal or iisnode


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.


Solution

  • 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.