live view for file edit
-
is there a live view for file edits or does it require dashboard restart?
-
@charles you have to do a reload. if you don't want to do it manually... try using grunt
NodeBB will be reloaded automatically every time you modify a file.
https://docs.nodebb.org/en/latest/running/index.html#grunt-development
-
@pichalite much to learn thanks!
Installing Grunt
$ npm install -g grunt-cli
$ npm i grunt grunt-contrib-watchRun grunt to start up NodeBB and watch for code changes.
$ grunt
-
I added
npm i grunt grunt-contrib-watch
to the above post since it was needed to solve the fatal error https://community.nodebb.org/topic/8311/fatal-error-unable-to-find-local-grunt/ that was showing in case anyone else comes here from a search. The above is all you need for automated nodebb refresh after file edits.
-
$ npm i grunt grunt-contrib-watch
I recommend using
npm install
(no further parameters) instead. Since those packages are listed withindevDependencies
they will be installed as long you don't add--production
.