diff --git a/loopback/server/server.js b/loopback/server/server.js index 0e2e123ca..188b5eb0f 100644 --- a/loopback/server/server.js +++ b/loopback/server/server.js @@ -57,7 +57,7 @@ app.start = function(bootOptions, port, callback) { }); }; -app.boot = function(myBootOptions, callback) { +app.boot = function(bootOptions, callback) { // Internatinalization if (fs.existsSync(localeDir)) { @@ -118,7 +118,7 @@ app.boot = function(myBootOptions, callback) { } } - let bootOptions = { + let myBootOptions = { appRootDir: __dirname, appConfigRootDir: rootDir, modelsRootDir: rootDir, @@ -129,10 +129,10 @@ app.boot = function(myBootOptions, callback) { }; if (fs.existsSync(`/etc/salix`)) - bootOptions.dsRootDir = `/etc/salix`; + myBootOptions.dsRootDir = `/etc/salix`; - Object.assign(bootOptions, myBootOptions); - boot(this, bootOptions, callback); + Object.assign(myBootOptions, bootOptions); + boot(this, myBootOptions, callback); }; if (require.main === module)