Skip to content

Commit

Permalink
define default redis url differently so REDIS_URL is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke committed Apr 25, 2018
1 parent 3144284 commit 7842e68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
GH_TOKEN=
REDIS_URL="redis://localhost:6379"
GH_TOKEN=
2 changes: 1 addition & 1 deletion bin/update-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit 7842e68

Please sign in to comment.