lov icon indicating copy to clipboard operation
lov copied to clipboard

config.root undefined

Open noorbakerally opened this issue 9 years ago • 1 comments

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 avatar Oct 21 '15 13:10 noorbakerally

@noorbakerally Any feedback from your deployment? Maybe you have a tuto to share to others who had similar issues? TIA.

gatemezing avatar Jun 15 '16 13:06 gatemezing