You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I opened my .cdsrc.json file, it was empty "{}"
I'm not sure if this is a template error, but it would be a good idea to make partners look at this file to understand why the production environment works for HANA whereas development works for sqlite. Here is how mine works: { "requires": { "db": { "kind": "hana" } }, "[development]": { "requires": { "db": { "kind": "sqlite", "credentials": { "database": "my.db" } } } } }
Plus, I had to adapt the exercise to use hdi syntax while deploying instead of the default cds syntax by entering the following under my package.json:
Hi Ivan, not sure why you had to use hdi syntax while deploying, I do not recall anyone having this particular issue. I will need to take a look later in the week.
I am following the script below:
https://github.com/scottdillon1/Virtual_SCP_Academy/blob/master/CAP/Part4%20-%20Deploy%20to%20CF.md
However, when I opened my .cdsrc.json file, it was empty "{}"
I'm not sure if this is a template error, but it would be a good idea to make partners look at this file to understand why the production environment works for HANA whereas development works for sqlite. Here is how mine works:
{ "requires": { "db": { "kind": "hana" } }, "[development]": { "requires": { "db": { "kind": "sqlite", "credentials": { "database": "my.db" } } } } }
Plus, I had to adapt the exercise to use hdi syntax while deploying instead of the default cds syntax by entering the following under my package.json:
{ "name": "incidents_i807056", "version": "1.0.0", "description": "A simple CAP project.", "repository": "<Add your repository here>", "license": "UNLICENSED", "private": true, "dependencies": { "@sap/cds": "^3", "express": "^4", "@sap/hana-client": "^2.4.177" }, "scripts": { "start": "npx cds run" }, "cds": { "requires": { "db": { "kind": "hana" } }, "hana" : { "syntax": "hdi" } }, "devDependencies": { "sqlite3": "^4.2.0" } }
Best regards,
Ivan
The text was updated successfully, but these errors were encountered: