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'm trying to deploy the LOV web application from github on my server. When I am trying to run the app, I'm getting the following error:
Error: Failed to lookup view "500" in views directory "undefined/app/views" at Function.app.render (/home/me/Documents/lov/node_modules/express/lib/application.js:493:17)
I know somewhat the error comes from the following piece of code: app.set('views', config.root + '/app/views') because config.root isn't defined, so I wanted to know where should I define this.
Does Node.js do it automatically?
But, i modified config file development object to include the following line and it work,
root: process.cwd(),
The text was updated successfully, but these errors were encountered:
I'm trying to deploy the LOV web application from github on my server. When I am trying to run the app, I'm getting the following error:
Error: Failed to lookup view "500" in views directory "undefined/app/views" at Function.app.render (/home/me/Documents/lov/node_modules/express/lib/application.js:493:17)
I know somewhat the error comes from the following piece of code: app.set('views', config.root + '/app/views') because config.root isn't defined, so I wanted to know where should I define this.
Does Node.js do it automatically?
But, i modified config file development object to include the following line and it work,
root: process.cwd(),
The text was updated successfully, but these errors were encountered: