add changes for fiori service deployment
This commit is contained in:
@@ -1 +0,0 @@
|
||||
using from '../../fiori/app/services.cds';
|
||||
@@ -2,10 +2,18 @@
|
||||
"name": "@capire/fiori",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@capire/bookshop": "*",
|
||||
"@capire/reviews": "*",
|
||||
"@capire/orders": "*",
|
||||
"@capire/common": "*",
|
||||
"@capire/data-viewer": "*",
|
||||
"@capire/bookstore": "*",
|
||||
"@sap-cloud-sdk/http-client": "^3.24.0",
|
||||
"@sap-cloud-sdk/resilience": "^3.24.0",
|
||||
"@sap/cds": ">=5",
|
||||
"@cap-js-community/odata-v2-adapter": "^1",
|
||||
"express": "^4.17.1"
|
||||
"express": "^4.17.1",
|
||||
"@cap-js/hana": "^1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cap-js/sqlite": "^1"
|
||||
@@ -18,25 +26,36 @@
|
||||
"requires": {
|
||||
"ReviewsService": {
|
||||
"kind": "odata",
|
||||
"model": "@capire/reviews"
|
||||
"model": "@capire/reviews",
|
||||
"[production]": {
|
||||
"credentials": {
|
||||
"destination": "reviews-dest",
|
||||
"path": "/reviews"
|
||||
}
|
||||
}
|
||||
},
|
||||
"OrdersService": {
|
||||
"kind": "odata",
|
||||
"model": "@capire/orders"
|
||||
},
|
||||
"messaging": {
|
||||
"model": "@capire/orders",
|
||||
"[production]": {
|
||||
"kind": "enterprise-messaging"
|
||||
},
|
||||
"[development]": {
|
||||
"kind": "file-based-messaging"
|
||||
},
|
||||
"[hybrid]": {
|
||||
"kind": "enterprise-messaging-shared"
|
||||
"credentials": {
|
||||
"destination": "orders-dest",
|
||||
"path": "/odata/v4/orders"
|
||||
}
|
||||
}
|
||||
},
|
||||
"db": {
|
||||
"kind": "sql"
|
||||
"[production]": {
|
||||
"auth": "xsuaa",
|
||||
"db": "hana",
|
||||
"messaging": "enterprise-messaging"
|
||||
},
|
||||
"[development]": {
|
||||
"db": "sql",
|
||||
"messaging": "file-based-messaging"
|
||||
},
|
||||
"[hybrid]": {
|
||||
"db": "hana",
|
||||
"messaging": "enterprise-messaging-shared"
|
||||
},
|
||||
"db-ext": {
|
||||
"[development]": {
|
||||
|
||||
1
fiori/server.js
Normal file
1
fiori/server.js
Normal file
@@ -0,0 +1 @@
|
||||
require('@capire/bookstore/server')
|
||||
0
fiori/srv/.gitkeep
Normal file
0
fiori/srv/.gitkeep
Normal file
7
mta.yaml
7
mta.yaml
@@ -12,7 +12,8 @@ build-parameters:
|
||||
- npx cds build --for hana --production --ws
|
||||
- npx cds build ./orders --for nodejs --production --ws-pack
|
||||
- npx cds build ./reviews --for nodejs --production --ws-pack
|
||||
- npx cds build ./bookstore --for nodejs --production --ws-pack
|
||||
- npx cds build ./fiori --for nodejs --production --ws-pack
|
||||
|
||||
modules:
|
||||
- name: orders-srv
|
||||
type: nodejs
|
||||
@@ -54,9 +55,9 @@ modules:
|
||||
- name: samples-db
|
||||
- name: samples-auth
|
||||
|
||||
- name: bookstore-srv
|
||||
- name: fiori-srv
|
||||
type: nodejs
|
||||
path: bookstore/gen/srv
|
||||
path: fiori/gen/srv
|
||||
parameters:
|
||||
buildpack: nodejs_buildpack
|
||||
readiness-health-check-type: http
|
||||
|
||||
Reference in New Issue
Block a user