How can I auto reload the client side files such as the .ejs and the javascript files?
I have tried using forever but it seems to only autoreload the models and controllers.I'm looking for a way to auto-reload the client side files.
How can I auto reload the client side files such as the .ejs and the javascript files?
I have tried using forever but it seems to only autoreload the models and controllers.I'm looking for a way to auto-reload the client side files.
For now, that can not be done. Only models, controllers, views and services files are reloaded. All other can be reloaded only manually.
https://www.npmjs.com/package/sails-hook-autoreload
Anyway I do not see the problem. Only configs and static files are not updated. That is done by Grunt at server startup. And you do not need to do it often, so you can manually restart server.
I managed to solved it.
auto reload doesn't work on production mode. Only on development
After lost some time trying do this with sails/grunt, i install the livereload browser plugin (http://livereload.com/extensions/) for .html, js and css and the package (https://www.npmjs.com/package/sails-hook-autoreload) for the models and controllers.
It has another way in the link follow: