Plugin Templates Not Loading - Hello new build system!
-
I recently deployed a new public Ubuntu server with Nodebb 1.4.3 and then upgraded to 1.4.4. For some reason, my plugin's template files are not being loaded into the nodebb/plugin/templates directory now.
Has anyone seen anything like this before?
Locally, when I do a "./nodebb dev" startup I see this in my logs:
6/3 16:14 [28897] - verbose: [plugins] /header.tpl replaced by ...
On my public server I don't see this even when doing the dev start.
To set up this new server, I followed the docs here: https://nodebb.readthedocs.io/en/latest/installing/os/ubuntu.html
Any ideas?
-
@jongarrison what directory are you expecting them to show up in? They should be showing up in the
build/public/templates
directory under whatever template it's called. -
Interesting, I had thought they were in /public/templates. Was that in older versions?
In any event, the server wasn't loading new templates coming in with an updated plugin.
I'm in the process of trying out a few things with the server now.
-
Found the solution, It turns out that I had missed this blog post before upgrading to 1.4.x:
https://blog.nodebb.org/introducing-the-build-system-in-v1-4-3/
./nodebb build