Skip to content

Commit 640bf4f

Browse files
committed
using node watch
1 parent 9d54108 commit 640bf4f

File tree

3 files changed

+6
-120
lines changed

3 files changed

+6
-120
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ You can enter in container e run a queue worker by yourself passing your queue n
135135
docker exec -it taurus-queue bash
136136
```
137137
138-
Running a queue worker in debug mode (in nodemon to update service when code changes)
138+
Running a queue worker in debug mode (with node flag --watch to update service when code changes)
139139
```sh
140140
npm run dev default 1
141141
```
@@ -151,7 +151,7 @@ The `log.show` command always have output, so use carefully
151151
You can also run a cluster with multiples queue workers, in this case we running 5 workers.
152152
* if you choose to do that, take care of your resources like Memory and CPU, it can be very, very heavy depends on the number of works and the operations of your business.
153153
154-
Running 5 queue workers in debug mode (in nodemon to update service when code changes)
154+
Running 5 queue workers in debug mode (with node flag --watch to update service when code changes)
155155
```sh
156156
npm dev-cluster default 5 1
157157
```

package-lock.json

Lines changed: 1 addition & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"scripts": {
2727
"start": "node queue.js",
2828
"start-cluster": "node cluster-queue.js",
29-
"dev": "nodemon queue.js",
30-
"dev-cluster": "nodemon cluster-queue.js",
29+
"dev": "node --watch queue.js",
30+
"dev-cluster": "node --watch cluster-queue.js",
3131
"lint": "./node_modules/.bin/eslint *.js ./app/*.js ./business/*.js ./config/*.js ./sample/*.js ./core/*.js",
3232
"check": "npm run lint"
3333
},
@@ -38,7 +38,6 @@
3838
"eslint": "^8.56.0",
3939
"eslint-config-google": "^0.14.0",
4040
"eslint-plugin-import": "^2.29.1",
41-
"mocha": "^10.2.0",
42-
"nodemon": "^3.0.2"
41+
"mocha": "^10.2.0"
4342
}
4443
}

0 commit comments

Comments
 (0)