on 2020 Jul 04 9:07 AM
Hello Everyone,
I am facing an issue while trying to deploy CAP solution on HANA.
My HANA version is 4.00.000.00.1588678749 and environment is Cloud Foundry
File - meta.yaml
## Generated mta.yaml based on template version 0.2.0
## appName = tmca-encore
## language=nodejs; multiTenant=false
## approuter=
_schema-version: '3.1'
ID: tmca-encore
version: 1.0.0
description: "my-project Project"
parameters:
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm install
- npx cds build\/all
modules:
#### The SRV Module is the backend of application, It will be started
# --------------------- SERVER MODULE ------------------------
- name: my-project-srv
# ------------------------------------------------------------
type: nodejs
path: srv
properties:
EXIT: 1 # required by deploy.js task to terminate
requires:
# Resources extracted from CAP configuration
- name: my-project-db
provides:
- name: srv-binding # required by consumers of CAP services (e.g. approuter)
properties:
srv-url: ${default-url}
#### We can see that module name DB is created as application, it will be in a stopped state most of the time, it is used only during deployment for HDB modules.
# -------------------- DATABASE MODULE ------------------------
- name: my-project-db
# ------------------------------------------------------------
type: hdb
path: db
build-parameters:
ignore: ["node_modules/"]
parameters:
memory: 1G
disk-quota: 2G
requires:
- name: my-project-db-hdi-container
# requires:
# 'hana' and 'xsuaa' resources extracted from CAP configuration
# - name: my-project-db
resources:
# services extracted from CAP configuration
# 'service-plan' can be configured via 'cds.requires.<name>.vcap.plan'
# ------------------------------------------------------------
- name: my-project-db-hdi-container
# ------------------------------------------------------------
type: com.sap.xs.hdi-container
parameters:
service: hana
shared: true
config:
database_id: <HERE_I_ADDED_MY_DB_ID>
properties:
hdi-service-name: ${service-name}
File package.json
{
"name": "my-project",
"version": "1.0.0",
"description": "TMCA Encore",
"repository": "<Add your repository here>",
"license": "UNLICENSED",
"private": true,
"dependencies": {
"@sap/audit-logging": "^3.1.0",
"@sap/cds": "3.21.3",
"@sap/cds-odata-v2-adapter-proxy": "^1.4.25",
"@sap/hana-client": "^2.4.182",
"express": "^4.17.1",
"hdb": "^0.17.1"
},
"engines": {
"node": "^12"
},
"scripts": {
"start": "npx cds run",
"start-local": "cds watch",
"deploy": "cds deploy"
},
"cds": {
"requires": {
"db": {
"kind": "sql",
"model": [
"db",
"srv"
],
"[production]": {
"kind": "hana"
}
},
"odata": {
"version": "v4"
}
}
},
"devDependencies": {
"@sap/hdi-deploy": "3.7.0",
"@sap/cds-dk": "^1.4.4",
"sqlite3": "^4.1.1"
}
}
Error
I checked the build packs, but nodejs is already present in my CF account.
Request clarification before answering.
What kind of environment are you deploying? Enterprise or trial?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.