From 0118766d91e581f7af2d9907f6c520bc6fa082d8 Mon Sep 17 00:00:00 2001 From: jackkav Date: Mon, 8 Jan 2024 15:51:07 +0100 Subject: [PATCH] make redis errors clearer --- README.md | 25 ++++++++++++------------- lib/routes/bins.js | 2 +- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 999d3ea3..ada405d2 100644 --- a/README.md +++ b/README.md @@ -26,21 +26,8 @@ Mockbin is used internally and maintained by [Kong](https://github.com/Kong), wh ## Installation -```shell -git clone https://github.com/Kong/mockbin.git ./mockbin -cd mockbin -cp .env.sample .env -brew install fnm -fnm use -npm install -``` - -Note: nvm, n or volta can be used instead of fnm. - ### Requirements -other than the dependencies listed in [package.json](package.json) The following are required: - - [Redis](http://redis.io/) ```shell @@ -49,6 +36,18 @@ brew services start redis ``` Redis should be now running on localhost:6379 +Mockbin will start without redis but you wont be able to set or get response bins. + +```shell +git clone https://github.com/Kong/mockbin.git ./mockbin +cd mockbin +cp .env.sample .env +brew install fnm +fnm use +npm install +``` + +Note: nvm, n or volta can be used instead of fnm. ### Running with Node diff --git a/lib/routes/bins.js b/lib/routes/bins.js index c4a3b6c3..45dae03b 100644 --- a/lib/routes/bins.js +++ b/lib/routes/bins.js @@ -25,7 +25,7 @@ module.exports = function bins(dsnStr) { } this.client.on("error", (err) => { - debug("redis error:", err); + console.log("redis error:", err); }); const router = express.Router();