Node app not reloading in Vagrant

j0sephandres
New Member
1 0 0

Hi, i'm trying to create my first application but having troubles due to when i change some file, it doesn't compiles again, thus the change doesn't reflex until the server restarts. add the `-L` flag to Nodemon it doesn't works, use `--inspect=0.0.0.0`(0.0.0.0 localhost inside a Vagrant box) it doesn't works either, besides the first compile proccess it's extremly slow, it takes about 1 minute. I'm in a Windows machine so i'm stuck. Is there is a way to not use HMR, but reloading the page i take it. Please Help.

 

cross-env NODE_ENV=development nodemon --inspect=0.0.0.0 -L ./server/index.js --watch ./server/index.js

 

0 Likes