Update Heroku stuff
This commit is contained in:
parent
699a7c3cd2
commit
8a650b781d
3 changed files with 8 additions and 6 deletions
2
Procfile
2
Procfile
|
@ -1 +1 @@
|
||||||
web: node ./bin/www
|
web: npm run build && npm start
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bluebird": "^2.3.11",
|
"bluebird": "^2.3.11",
|
||||||
"body-parser": "~1.8.1",
|
"body-parser": "~1.8.1",
|
||||||
|
"browserify": "^7.0.0",
|
||||||
"compression": "^1.2.2",
|
"compression": "^1.2.2",
|
||||||
"connect-flash": "^0.1.1",
|
"connect-flash": "^0.1.1",
|
||||||
"connect-browserify": "^3.2.1",
|
"connect-browserify": "^3.2.1",
|
||||||
|
@ -42,16 +43,15 @@
|
||||||
"react": "^0.12.1",
|
"react": "^0.12.1",
|
||||||
"react-google-analytics": "^0.2.0",
|
"react-google-analytics": "^0.2.0",
|
||||||
"react-router": "^0.11.6",
|
"react-router": "^0.11.6",
|
||||||
|
"reactify": "^0.17.1",
|
||||||
|
"envify": "^3.2.0",
|
||||||
"serve-favicon": "~2.1.3",
|
"serve-favicon": "~2.1.3",
|
||||||
"spotify": "^0.3.0",
|
"spotify": "^0.3.0",
|
||||||
"superagent": "^0.21.0",
|
"superagent": "^0.21.0",
|
||||||
"superagent-bluebird-promise": "^0.5.1"
|
"superagent-bluebird-promise": "^0.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^7.0.0",
|
|
||||||
"should": "^4.3.0",
|
"should": "^4.3.0",
|
||||||
"mocha": "^2.0.1",
|
"mocha": "^2.0.1"
|
||||||
"envify": "^3.2.0",
|
|
||||||
"reactify": "^0.17.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,9 @@ module.exports = function(req, res, next) {
|
||||||
req.db.matches.find().sort({created_at:-1}).limit(6).toArray().then(function(docs){
|
req.db.matches.find().sort({created_at:-1}).limit(6).toArray().then(function(docs){
|
||||||
var recents = [];
|
var recents = [];
|
||||||
docs.forEach(function(doc) {
|
docs.forEach(function(doc) {
|
||||||
recents.push(doc.services[doc._id.split("$$")[0]]);
|
if (doc._id.indexOf("$$") > -1) {
|
||||||
|
recents.push(doc.services[doc._id.split("$$")[0]]);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Router.run(routes, req.url, function (Handler) {
|
Router.run(routes, req.url, function (Handler) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue