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:
parent
153fa7478f
commit
81df74dfc8
@ -45,7 +45,7 @@ function init(_server,_settings) {
|
|||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
return storage.init(settings)
|
return storage.init(settings)
|
||||||
.then(settings.load(storage))
|
.then(function() { return settings.load(storage)})
|
||||||
.then(function() {
|
.then(function() {
|
||||||
if (settings.httpAdminRoot !== false) {
|
if (settings.httpAdminRoot !== false) {
|
||||||
require("./api").init(app,storage);
|
require("./api").init(app,storage);
|
||||||
|
Loading…
Reference in New Issue
Block a user