Skip to content

Commit 583aa02

Browse files
committed
up
1 parent e325ec6 commit 583aa02

File tree

621 files changed

+88351
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

621 files changed

+88351
-143
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
npm install node-express-reload
3030
```
3131

32-
## Example 1
32+
## Example 1 (reloaded manually)
3333

3434
[view code example](https://github.com/natancabral/node-express-reload/tree/main/example)
3535

@@ -49,8 +49,9 @@ app.use('/ner', require("node-express-reload")({
4949
// Open options
5050
// http://localhost:8080/ner/
5151
// http://localhost:8080/any-another-word/
52-
// Manual reload
52+
// Reloaded manually
5353
// http://localhost:8080/ner/reload/
54+
// http://localhost:8080/any-another-word/reload
5455

5556
app.get("/", (req, res) => res.send(`I'm pid ${process.pid} and port ${PORT}`));
5657
app.listen(PORT);
@@ -63,11 +64,10 @@ app.listen(PORT);
6364
Silent reload module (express router)
6465

6566
```js
66-
const path = require('path');
6767
const express = require("express");
6868
const app = express();
6969
const requireWatcher = require("node-express-reload")('require-watcher');
70-
const PORT = 8099;
70+
const PORT = 8080;
7171

7272
// silent reload
7373
app.use('/home', requireWatcher( __dirname + '/home/index.js')) // or only '/home/'
@@ -97,6 +97,7 @@ app.listen(PORT);
9797

9898
## Another resource to management
9999

100+
- Example 1
100101
- http://localhost:8080/ner
101102
- http://localhost:8080/any-another-word
102103

0 commit comments

Comments
 (0)