From 183d58a5409b19cefc29de48ec1e17e1fdd7bbaf Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Mon, 23 Oct 2017 19:26:49 +0100 Subject: [PATCH] Fix worker redis --- routes/search.js | 6 ++---- worker.js | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/routes/search.js b/routes/search.js index 57363fc..2dc2d20 100644 --- a/routes/search.js +++ b/routes/search.js @@ -3,12 +3,10 @@ import kue from 'kue'; import lookup from '../lib/lookup'; import services from '../lib/services'; -import { find, create, findMatchesAsync } from '../lib/share'; +import { find, create } from '../lib/share'; const queue = kue.createQueue({ - redis: { - host: 'redis', - }, + redis: process.env.REDIS_URL, }); export default function* () { diff --git a/worker.js b/worker.js index b93b314..35cf22f 100644 --- a/worker.js +++ b/worker.js @@ -9,9 +9,7 @@ import { find, create, findMatchesAsync } from './lib/share'; raven.config(process.env.SENTRY_DSN).install(); const queue = kue.createQueue({ - redis: { - host: 'redis', - }, + redis: process.env.REDIS_URL, }); function search(share, done) {