Skip to content

Commit efe65f5

Browse files
authored
Upated mta.yamls (#183)
align mta-single-tenant.yaml with command: cds add mta
1 parent afde31b commit efe65f5

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

db/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
"dependencies": {
44
"@sap/hdi-deploy": "^4"
55
},
6+
"engines": {
7+
"node": "^16"
8+
},
69
"scripts": {
7-
"start": "node node_modules/@sap/hdi-deploy --exit"
10+
"start": "node node_modules/@sap/hdi-deploy/deploy.js",
11+
"build": "npm i && npx -p @sap/cds-dk@^6 cds build .. --for hana --production"
812
}
913
}

mta-single-tenant.yaml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ version: 1.0.0
44
description: "Bookshop CAP Java Project with UI"
55
parameters:
66
enable-parallel-deployments: true
7-
build-parameters:
8-
before-all:
9-
- builder: custom
10-
commands:
11-
- npm install --production
12-
- npx -p @sap/cds-dk cds build --production
137
modules:
148
# --------------------- SERVER MODULE ------------------------
159
- name: bookshop-srv
@@ -38,18 +32,15 @@ modules:
3832
# --------------------- DB MODULE ---------------------------
3933
- name: bookshop-db
4034
# -----------------------------------------------------------
41-
type: nodejs
35+
type: hdb
4236
path: db
4337
parameters:
44-
memory: 256M
45-
disk-quota: 512M
46-
no-route: true
47-
no-start: true
48-
tasks: # execute hdi deployer on app creation/update
49-
- name: hdi-deploy
50-
command: npm run start
38+
buildpack: nodejs_buildpack
39+
build-parameters:
40+
builder: custom
41+
commands:
42+
- npm run build
5143
requires:
52-
# Set user and password to secure rest API via basic authentication
5344
- name: bookshop-hdi-container
5445
# --------------------- APPROUTER MODULE ---------------------
5546
- name: bookshop-app

0 commit comments

Comments
 (0)