Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updates to config

  • Loading branch information...
commit 37bf2bf59ce7555e43a6413a62f0f9532087ac5d 1 parent 676700b
Brendan Nee authored
Showing with 5 additions and 6 deletions.
  1. +2 −1  config.js
  2. +3 −5 routes/index.js
3  config.js
View
@@ -5,7 +5,8 @@ try{
var express = require('express')
, mongoose = require('mongoose')
, mongoURI = process.env['MONGO_URI'] || options.mongo_uri
- , db = mongoose.connect(mongoURI);
+ , db = mongoose.connect(mongoURI)
+ , twitter = require('ntwitter');
module.exports = function(app){
8 routes/index.js
View
@@ -3,8 +3,7 @@ require('../models/models');
var async = require('async')
, _ = require('underscore')
- twitter = require('ntwitter')
- languages = ['en', 'es', 'pt', 'fr', 'other'];
+ , languages = ['en', 'es', 'pt', 'fr', 'other'];
module.exports = function routes(app){
@@ -15,9 +14,8 @@ module.exports = function routes(app){
/* Socket IO */
- //Config for heroku
- io.configure(function () {
- io.set("transports", ["xhr-polling"]);
+ io.configure(function () {
+ io.set("transports", ["xhr-polling"]);
io.set("polling duration", 10);
});
Please sign in to comment.
Something went wrong with that request. Please try again.