Skip to content

nswbmw/supervisor-hot-reload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supervisor-hot-reload

supervisor-hot-reload = supervisor + proxy-hot-reload.

Install

$ npm i supervisor-hot-reload -g

Example

app.js

'use strict';

const express = require('express');
const app = express();
const user = require('./user');

app.get('/', function (req, res) {
  res.send(user);
})

app.listen(3000);

user.js

module.exports = {
  id: 1,
  age: 19
}
DEBUG=proxy-hot-reload supervisor-hot-reload app.js

If you modify user.js, it will hot reload user.js. If you change app.js, it will restart server.

Options

see supervisor.

License

MIT

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%