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) {