diff --git a/README.md b/README.md index 449e6ebc..279dbb3d 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,23 @@ MEAN is a boilerplate that provides a nice starting point for [MongoDB](http://w When not using grunt you can use: $ node server - - Then open a browser and go to: + Then open a browser and go to: + http://localhost:3000 +## Quick Deployment +4 commands to deploy your mean app to heroku, +Before you start make sure you have heroku toolbelt installed and an accessible mongo db instance - you can try mongohq which have an easy setup ) + +```bash +git init +git add . +git commit -m "initial version" +heroku apps:create +git push heroku master +``` + ## Configuration All configuration is specified in the [config](config/) folder, particularly the [config.js](config/config.js) file. Here you will need to specify your application name, database name, as well as hook up any social app keys if you want integration with Twitter, Facebook, GitHub or Google. diff --git a/config/passport.js b/config/passport.js index e71d7045..968a1ffa 100755 --- a/config/passport.js +++ b/config/passport.js @@ -56,7 +56,7 @@ module.exports = function(passport, config) { }, function(token, tokenSecret, profile, done) { User.findOne({ - 'twitter.id': profile.id + 'twitter.id_str': profile.id }, function(err, user) { if (err) { return done(err);