Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.root undefined #53

Open
noorbakerally opened this issue Oct 21, 2015 · 1 comment
Open

config.root undefined #53

noorbakerally opened this issue Oct 21, 2015 · 1 comment

Comments

@noorbakerally
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants