wait for templates to compile even if using clustering
fix emitter.all
upgrade.check error first
removed plugins.ready, using callback on plugins.init
removed webserver.init, using webserver.listen
This commit is contained in:
barisusakli
2015-04-27 20:26:02 -04:00
parent 51212c2bfa
commit d946a2fcbd
9 changed files with 325 additions and 316 deletions

View File

@@ -499,7 +499,10 @@ install.setup = function (callback) {
setCopyrightWidget,
function (next) {
var upgrade = require('./upgrade');
upgrade.check(function(uptodate) {
upgrade.check(function(err, uptodate) {
if (err) {
return next(err);
}
if (!uptodate) { upgrade.upgrade(next); }
else { next(); }
});