1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Server not waiting for settings to load

This commit is contained in:
Nick O'Leary 2015-03-22 20:55:38 +00:00
parent 153fa7478f
commit 81df74dfc8

View File

@ -45,7 +45,7 @@ function init(_server,_settings) {
function start() {
return storage.init(settings)
.then(settings.load(storage))
.then(function() { return settings.load(storage)})
.then(function() {
if (settings.httpAdminRoot !== false) {
require("./api").init(app,storage);