Run Reviews and Orders embedded in MT scenario
This makes deployment much simpler
This commit is contained in:
@@ -5,4 +5,11 @@ const proxy = require('@sap/cds-odata-v2-adapter-proxy')
|
||||
const proxyOpts = global.it ? { target:'auto' } : {} // for tests, set 'auto' to detect port dynamically
|
||||
cds.on('bootstrap', app => app.use(proxy(proxyOpts)))
|
||||
|
||||
module.exports = require('@capire/bookstore/server.js')
|
||||
module.exports = require('@capire/bookstore/server.js')
|
||||
|
||||
// For didactic reasons in capire, run below services embedded
|
||||
// TODO find a better way to switch this
|
||||
if (cds.requires.multitenancy) {
|
||||
cds.requires.OrdersService = null
|
||||
cds.requires.ReviewsService = null
|
||||
}
|
||||
Reference in New Issue
Block a user