mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-21 11:21:44 +01:00
Merge branch 'master' of https://github.com/linnovate/mean
This commit is contained in:
16
README.md
16
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 <a href="https://toolbelt.heroku.com/">heroku toolbelt</a> installed and an accessible mongo db instance - you can try <a href="http://www.mongohq.com/">mongohq</a> 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.
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user