@ -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({
@ -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');