Simcha
Simcha

Reputation: 3400

Netbeans and nodejs using

Hi I'm creating nodejs app in netbeans ide. Every time when I'm changing js file I need manually restart server. Do You know how to do deploy automatically?

Upvotes: 1

Views: 976

Answers (1)

ladar
ladar

Reputation: 5876

NetBeans 8.0 supports Grunt, you can use grunt-contrib-watch (see here). This plugins executes Grunt task (let's call it taskX) on file save. Then use grunt-exec (see here) to define the taskX (that will be called by grunt-contrib-watch). The taskX should be configured to invoke command to stop and start NodeJS.

Finally, in NetBeans right click on Gruntfile.js (should be in project root directory), select Load tasks and select the grunt-contrib-watch.

Upvotes: 2

Related Questions