Skip to content

Commit 93f1581

Browse files
committed
Update bull-board to 2.0.3 closes #7
1 parent d3434d2 commit 93f1581

File tree

5 files changed

+70
-303
lines changed

5 files changed

+70
-303
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = crlf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = tab
8+
indent_size = 4
9+
10+
[{package.json,**.yml}]
11+
indent_style = space
12+
indent_size = 2

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Docker image for [bull-board]. Allow you to monitor your bull queue without any coding!
22

3-
Supports both: bull and bullmq. bull-board version v1.5.1
3+
Supports both: bull and bullmq. bull-board version v2.0.3
44

55
### Quick start with Docker
66
```
@@ -69,7 +69,7 @@ services:
6969
REDIS_HOST: redis
7070
REDIS_PORT: 6379
7171
REDIS_PASSWORD: example-password
72-
REDIS_USE_TLS: false
72+
REDIS_USE_TLS: 'false'
7373
BULL_PREFIX: bull
7474
depends_on:
7575
- redis

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "bullboard",
3-
"version": "1.0.0-alpha.7",
3+
"version": "2.0.3",
44
"main": "src/index.js",
55
"license": "MIT",
66
"dependencies": {
77
"body-parser": "^1.19.0",
88
"bull": "^3.13.0",
9-
"bull-board": "^1.2.0",
9+
"bull-board": "^2.0.3",
1010
"bullmq": "^1.8.4",
1111
"connect-ensure-login": "^0.1.1",
1212
"express": "^4.17.1",

src/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
const {router, setQueues, BullMQAdapter, BullAdapter} = require('bull-board');
1+
const {createBullBoard} = require('bull-board');
2+
const {BullAdapter} = require('bull-board/bullAdapter')
3+
const {BullMQAdapter} = require('bull-board/bullMQAdapter')
24
const Queue = require('bull');
35
const bullmq = require('bullmq');
46
const express = require('express');
@@ -21,6 +23,7 @@ const redisConfig = {
2123
};
2224

2325
const client = redis.createClient(redisConfig.redis);
26+
const {router, setQueues} = createBullBoard([]);
2427

2528
client.KEYS(`${config.BULL_PREFIX}:*`, (err, keys) => {
2629
const uniqKeys = new Set(keys.map(key => key.replace(/^.+?:(.+?):.+?$/, '$1')));
@@ -35,6 +38,7 @@ client.KEYS(`${config.BULL_PREFIX}:*`, (err, keys) => {
3538
);
3639

3740
setQueues(queueList);
41+
console.log('done!')
3842
});
3943

4044
const app = express();
@@ -58,4 +62,5 @@ else {
5862

5963
app.listen(config.PORT, () => {
6064
console.log(`bull-board is started http://localhost:${config.PORT}${config.HOME_PAGE}`);
65+
console.log(`bull-board is fetching queue list, please wait...`);
6166
});

0 commit comments

Comments
 (0)