Permalink
Browse files

define default redis url differently so REDIS_URL is not required

  • Loading branch information...
zeke committed Apr 25, 2018
1 parent 3144284 commit 7842e68d609dd9998f67f7260bb9701a6d2b87cb
Showing with 3 additions and 4 deletions.
  1. +1 −2 .env.example
  2. +1 −1 bin/update-server.js
  3. +1 −1 test/index.js
@@ -1,2 +1 @@
GH_TOKEN=
REDIS_URL="redis://localhost:6379"
GH_TOKEN=
@@ -19,7 +19,7 @@ const Redlock = require('redlock')
const {
GH_TOKEN: token,
REDIS_URL: redisUrl,
REDIS_URL: redisUrl = 'redis://localhost:6379',
PORT: port = 3000,
CACHE_TTL: cacheTTL = '15m'
} = process.env
@@ -1,6 +1,6 @@
'use strict'
if (!process.env.CI) require('dotenv-safe').load()
require('dotenv-safe').load()
const { test } = require('tap')
const fetch = require('node-fetch')

0 comments on commit 7842e68

Please sign in to comment.