Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding the second needed piece to app.js for heroku

  • Loading branch information...
commit 527ab8369cb6a0496b6e1cddfad3d1e1501a7eb9 1 parent 17063a4
@synedra synedra authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 app.js
View
7 app.js
@@ -80,6 +80,13 @@ fs.readFile('public/data/apiconfig.json', 'utf-8', function(err, data) {
var app = module.exports = express.createServer();
+if (process.env.REDISTOGO_URL) {
+ var rtg = require("url").parse(process.env.REDISTOGO_URL);
+ config.redis.host = rtg.hostname;
+ config.redis.port = rtg.port;
+ config.redis.password = rtg.auth.split(":")[1];
+}
+
app.configure(function() {
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
Please sign in to comment.
Something went wrong with that request. Please try again.