try just require("./config.json") and see the output...


On Fri, May 3, 2013 at 10:20 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;
>
> Can you explain how? I still don't follow the code in the configuration
> scripts.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/webinos/webinos-pzhWebServer/pull/1/files#r4070966>
> .
>