Automatic reboot when changing the template
-
Now when changing the template, you need to reboot yourself to apply the changes, it's very inconvenient. Is there a development mode?
so that he himself applied instantly changes./nodebb dev
2018-06-27T09:16:13.634Z [957] - error: message=listen EADDRINUSE 0.0.0.0:4567, stack=Error: listen EADDRINUSE 0.0.0.0:4567
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
at Server.setupListenHandle [as _listen2] (net.js:1355:14)
at listenInCluster (net.js:1396:12)
at doListen (net.js:1505:7)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9), code=EADDRINUSE, errno=EADDRINUSE, syscall=listen, address=0.0.0.0, port=4567
2018-06-27T09:16:13.634Z [957] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
2018-06-27T09:16:13.635Z [957] - error: message=Not running, stack=Error: Not running
at Server.close (net.js:1608:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at Server.emit (events.js:208:7)
at emitCloseNT (net.js:1659:8)
at _combinedTickCallback (internal/process/next_tick.js:135:11)
at Immediate._tickCallback (internal/process/next_tick.js:180:9)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
3 restarts in 10 seconds, most likely an error on startup. Halting. -
Yep. Grunt can handle this. https://docs.nodebb.org/development/
-
@butonix well it certainly should be working. Have you tried disabling the cache when devtools are open?
-
@pitaj I tried it in different browsers, for example I delete everything from the file node_modules / nodebb-theme-persona / templates in the console there is a reboot, the build file becomes empty, but in the browser it still does not change.I cleaned the cache in the browser. what are other options?
-
@butonix if you run
./nodebb build
does it show up though?