loopbackjs - loopback cli root path configuration -
i trying use loopback "lb" command generate model. writes on server folder (root dir) though configured boot have different configuration paths models.
boot(app, { "env": "dev", "approotdir": __dirname, "appconfigrootdir": path.join(__dirname + "/config/app"), "modelsrootdir": path.join(__dirname + "/config/models"), "dsrootdir": path.join(__dirname + "/config/datasources"), "middlewarerootdir": path.join(__dirname + "/config/middleware"), "componentrootdir": path.join(__dirname + "/config/component") }, function (err) { if (err) throw err; console.log('the application successfuly bootstraped!'); // start server if `$ node server.js` if (require.main === module) app.start(); });
Comments
Post a Comment