lov
lov copied to clipboard
config.root undefined
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(),
@noorbakerally Any feedback from your deployment? Maybe you have a tuto to share to others who had similar issues? TIA.