2

If I already use IISNode under Windows for my node.js application (locally during development and on production Windows hosting as well), should I care about nodemon (or any similar "watch files for changes and restart node.exe if any" modules)?

Sevenate
  • 6,221
  • 3
  • 49
  • 75
  • I'd also like to know that...it seems that sometimes IIS refreshes, but sometimes it doesn't. Have you found out yet @Sevenate ? – André Lucas Mar 11 '14 at 17:19
  • 1
    @AndréLucas, not yet, but for me IISNode do the job just fine, that is why I'm wondering if I miss something here. – Sevenate Mar 12 '14 at 12:14
  • The only issue I'm getting is with stylus compiling. IIS doesn't recompile, so I had to do it manually everytime... – André Lucas Mar 12 '14 at 20:44
  • 1
    @AndréLucas, that is correct - I use IISNode mostly just to maintain the Node up and running the application, i.e. restart it if the process terminates because of for some error. If you need any automatic CSS/JS preprocessing take a look at http://gruntjs.com – Sevenate Mar 13 '14 at 10:19

1 Answers1

1

If you want iisnode to use nodemon instead of node, add the following to your web.config file under <system.webServer>:

<iisnode nodeProcessCommandLine="&quot;C:\path_to_node_on_your_system\node_modules\.bin\nodemon.cmd&quot;" />

Kade
  • 901
  • 13
  • 18