Skip to content

Commit a15ef2c

Browse files
committed
add redis port as env variable
1 parent 687b276 commit a15ef2c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
DB = mongodb+srv://username:[email protected]/test?retryWrites=true&w=majority
22
JWT_SECRET = somesupersecretstring
33
REDIS_AUTH = yourredispasswd
4-
REDIS_URL = yourredisurl
4+
REDIS_URL = yourredisurl
5+
REDIS_PORT = yourredisport

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pubsub.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Redis from "ioredis";
33

44
const options = {
55
host: process.env.REDIS_URL,
6-
port: 19627,
6+
port: process.env.REDIS_PORT,
77
password: process.env.REDIS_AUTH,
88
retryStrategy: times => {
99
// reconnect after

0 commit comments

Comments
 (0)