1

What I am trying to achieve is to trigger same behavior as Menu option Run > Run 'server.js'

file watcher

Alexander Ivanov
  • 1,268
  • 1
  • 9
  • 20
  • 1
    I haven't used webstorm but have you used nodemon? Maybe you can pass nodemon to webstorm so that it restarts the app on change – filype Nov 03 '15 at 07:19
  • Thanks for hint @Filype Here http://stackoverflow.com/a/21034724/1632404 I found solution that works for me. – Alexander Ivanov Nov 03 '15 at 18:33
  • Here the debugger restart after the code changes: https://stackoverflow.com/a/52463378/7350853 – iwaduarte Sep 23 '18 at 06:13

2 Answers2

4

Please try using Live Edit here - see http://blog.jetbrains.com/webstorm/2014/08/live-edit-updates-in-webstorm-9/. It allows re-starting node.js application on changing the code

lena
  • 90,154
  • 11
  • 145
  • 150
2

You need to integrate webstorm with nodemon instead of the main node program. Basically nodemon is in charge of restarting your application and not webstorm.

filype
  • 8,034
  • 10
  • 40
  • 66