From 5e5042e7cca2513b1ee189cf421148578a8dbf69 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 31 Mar 2014 00:09:14 -0700 Subject: [PATCH] Upgrade express version --- app.js | 8 ++------ package.json | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app.js b/app.js index 405fdc2..36591ce 100644 --- a/app.js +++ b/app.js @@ -1,5 +1,5 @@ var express = require('express') - , app = express.createServer() + , app = express() , _ = require('underscore') , fs = require('fs') , mixpanel = require('mixpanel') @@ -10,11 +10,7 @@ var express = require('express') var mpq = new mixpanel.Client('6e6e6b71ed5ada4504c52d915388d73d'); -var redis; -if (process.env.NODE_ENV == 'production') - redis = require('redis-url').connect(process.env.REDISTOGO_URL); -else - redis = require('redis-url').connect(); +var redis = require('redis-url').connect(); // Express config app.set('views', __dirname + '/views'); diff --git a/package.json b/package.json index 1c13511..fb9f858 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "TextBelt" , "dependencies": { - "express": "2.5.2" + "express": "latest" , "jade": "0.14.2" , "nodemailer": "latest" , "redis-url": "latest"