framework for reloading

This commit is contained in:
Julian Lam
2014-08-24 14:25:26 -04:00
parent ba91d7aba6
commit 5886ccc419
2 changed files with 5 additions and 4 deletions

View File

@@ -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() {
if (process.send) {
process.send({

View File

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