Skip to content

Commit

Permalink
Added REDIS_URL to support dokku
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Oakes committed Mar 1, 2014
1 parent ba70dc5 commit 48a3b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/redis-brain.coffee
Expand Up @@ -5,7 +5,7 @@
# "redis": "0.8.4"
#
# Configuration:
# REDISTOGO_URL or REDISCLOUD_URL or BOXEN_REDIS_URL
# REDISTOGO_URL or REDISCLOUD_URL or BOXEN_REDIS_URL or REDIS_URL
#
# Commands:
# None
Expand All @@ -17,7 +17,7 @@ Url = require "url"
Redis = require "redis"

module.exports = (robot) ->
info = Url.parse process.env.REDISTOGO_URL or process.env.REDISCLOUD_URL or process.env.BOXEN_REDIS_URL or 'redis://localhost:6379'
info = Url.parse process.env.REDISTOGO_URL or process.env.REDISCLOUD_URL or process.env.BOXEN_REDIS_URL or process.env.REDIS_URL or 'redis://localhost:6379'
client = Redis.createClient(info.port, info.hostname)

robot.brain.setAutoSave false
Expand Down

0 comments on commit 48a3b14

Please sign in to comment.