You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to run my demo site and was able to run it successfully from the current directory but after configuring the service file in systemd was unable to run it.
I have been trying to run my demo site and was able to run it successfully from the current directory but after configuring the service file in systemd was unable to run it.
`nunjucks.configure("views", {
autoescape: true,
express: app
});
app.set('views', path.join(__dirname, 'views'));
app.set("view engine", "nunjucks");
app.use("/public", express.static(__dirname + "/public"));
app.use("/", express.static(__dirname + "/"));
app.get(["/","/index","/index.html"], (req, res) => {
data.base_file = __dirname + '/views/base_file.njk';
res.render(__dirname + "/views/index.njk", data);
})`
And Directory structure as follows
Below is the Error Screenshot
Can someone please help
The text was updated successfully, but these errors were encountered: