Skip to content

Commit cff0ae1

Browse files
committed
bin: read REDIS_URL
1 parent e04d527 commit cff0ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/update-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ const assert = require('assert')
1414
// Args
1515
//
1616

17-
const { TOKEN: token } = process.env
17+
const { TOKEN: token, REDIS_URL: redisUrl } = process.env
1818
assert(token, 'TOKEN required')
1919

2020
//
2121
// Cache
2222
//
2323

24-
const client = redis.createClient()
24+
const client = redis.createClient(redisUrl)
2525
const get = promisify(client.get).bind(client)
2626
const set = promisify(client.set).bind(client)
2727

0 commit comments

Comments
 (0)