So i have a node app and I have the following: var options = {
key: fs.readFileSync('./server.key'), cert: fs.readFileSync('./server.crt') }; This only works if I run the app from these 2 files are. How do I change my code so that it works regardless of where it is launched from? I am looking for the "node" way of doing this. I know I can use an env variable to get around this. Thoughts? Reza -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.