In each manager there is config.json.
I did not add in pzh_webServer as did not see need when I did it.
The reason I suggested is we can have uniformity of the file name
convention for configuration.
Rename your facebook-config.json to config.json
On above line try require("../config.json"); require statement in nodejs
allows you to read json file directly and returns you json.parse structure.
http://stackoverflow.com/a/7165572


On Fri, May 3, 2013 at 10:35 AM, John Lyle <notifications@github.com> wrote:

> In lib/passportConfig.js:
>
> > +        done(null, user);
> > +    });
> > +
> > +    passport.deserializeUser(function (obj, done) {
> > +        done(null, obj);
> > +    });
> > +
> > +    return cb(passport, config);
> > +}
> > +
> > +function readConfig(configName) {
> > +    var fs = require('fs'),
> > +        path = require('path');
> > +    var fbFile = fs.readFileSync(path.join(__dirname,"..",configName));
> > +    var fbJson = JSON.parse(fbFile);
> > +    return fbJson;
>
> Cannot find module './Config.json' ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/webinos/webinos-pzhWebServer/pull/1/files#r4071145>
> .
>