pyvandenbussche / lov

Linked Open Vocabularies (LOV) - FrontEnd
http://lov.okfn.org/dataset/lov/
60 stars 12 forks source link

config.root undefined #53

Open noorbakerally opened 8 years ago

noorbakerally commented 8 years ago

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(),

gatemezing commented 8 years ago

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