I'm developing a web application on my local linux machine in a directory inside my home folder.

~/gits/myApp/

When I need to reference modules directories in my code I'd like to prepend the locations like so /model/users

The problem arises that my web software (node.js) understandingly looks at the root of my linux machine.

Is there a way to configure the folder my web app is in to think its at the root?

link|improve this question
2  
google chroot jails. en.wikipedia.org/wiki/Chroot – Sirex Oct 28 '11 at 11:20
feedback

1 Answer

If you remove the slash in the beginning of the location string, it should look to the directory it's running from.

Thus

model/users

Should work

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.