Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added REDIS_URL to support dokku #1344

Merged
merged 1 commit into from

2 participants

@matto1990

This environment variable is used by the Dokku Redis plugins to set the URL to get to the Redis instance in another Docker container. Adding this in allows people to self host their redis instance easily if they as using Dokku on their server.

@technicalpickles technicalpickles merged commit 43c6ef0 into github:master
@technicalpickles

Starting to get the point that this list of environment variables is getting out of hand. Good to merge for now, but probably should start thinking of a better way to handle them.

@matto1990 matto1990 deleted the matto1990:feature_dokku_redis branch
@matto1990

Agreed. It's a shame they all don't just use REDIS_URL...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 1, 2014
  1. @matto1990
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/scripts/redis-brain.coffee
View
4 src/scripts/redis-brain.coffee
@@ -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
@@ -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
Something went wrong with that request. Please try again.