From 7842e68d609dd9998f67f7260bb9701a6d2b87cb Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Tue, 24 Apr 2018 22:56:10 -0700 Subject: [PATCH] define default redis url differently so REDIS_URL is not required --- .env.example | 3 +-- bin/update-server.js | 2 +- test/index.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index fec99ff0..88e14c8f 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1 @@ - GH_TOKEN= - REDIS_URL="redis://localhost:6379" \ No newline at end of file + GH_TOKEN= \ No newline at end of file diff --git a/bin/update-server.js b/bin/update-server.js index 497d89b5..0095d38c 100755 --- a/bin/update-server.js +++ b/bin/update-server.js @@ -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 diff --git a/test/index.js b/test/index.js index 3788b73b..ed6fb795 100644 --- a/test/index.js +++ b/test/index.js @@ -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')