Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 2 deletions.
  1. 0 README
  2. 0 README.md
  3. +3 −2 app.js
View
0 README
No changes.
View
0 README.md
No changes.
View
5 app.js
@@ -27,11 +27,12 @@ app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
+
// development only
if ('development' == app.get('env')) {
app.use(express.errorHandler());
} else if ('production' == app.get('env')) {
- redis_url = url.parse(app.settings.env('REDISCLOUD_URL'));
+ redis_url = url.parse(process.env['REDISCLOUD_URL']);
}
function isValidReferer(referer) {
@@ -45,7 +46,7 @@ function isValidReferer(referer) {
db = redis.createClient(redis_url.port, redis_url.hostname);
if (redis_url.auth) {
- db.auth(db, redis_url.auth.split(/\:/));
+ db.auth(redis_url.auth.split(/\:/)[1]);
}
var Entry = require('./models/entry');

No commit comments for this range

Something went wrong with that request. Please try again.