Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  14] [ 4]  / answers: 1 / hits: 47039  / 10 Years ago, tue, july 15, 2014, 12:00:00

I tried express-livereload, but it just reloaded view files.



Should I use another tool, or this one can be configured to watch for my index.js file which runs the server?



I read that options are the same as node-livereload, and default for watched files include .js files.



Any URL you know with a simple configuration?



My main problem is how to setup good development environment for Express.js, and I would like to inspect the variables when I am making a request, is painful to restart each time I make a change in a route.



PS I tried node-inspector to inspect variables when server handles a request, but it seems node-inspector is not intended for that, right?


More From » node.js

 Answers
3

I think Nodemon has what you're looking for.




Nodemon is a utility that will monitor for any changes in your source and automatically restart your server. Perfect for development.




Example invocation:



nodemon index.js

[#70208] Friday, July 11, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mariann

Total Points: 201
Total Questions: 133
Total Answers: 107

Location: Czech Republic
Member since Thu, Aug 11, 2022
2 Years ago
;