framework for reloading

v1.18.x
Julian Lam 11 years ago
parent ba91d7aba6
commit 5886ccc419

@ -28,6 +28,11 @@ var async = require('async'),
}); });
}; };
Meta.reload = function(step) {
// 1. Reload plugins and associated routes
// 2. Minify scripts and css, update cache buster
};
Meta.restart = function() { Meta.restart = function() {
if (process.send) { if (process.send) {
process.send({ process.send({

@ -57,9 +57,5 @@ module.exports = function(app, middleware, controllers) {
router.get('/test', function(req, res) { router.get('/test', function(req, res) {
res.redirect(404); res.redirect(404);
var plugins = require('../plugins');
plugins.reloadRoutes(function() {
res.send(200, 'routes replaced');
});
}); });
}; };

Loading…
Cancel
Save