Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production env doesn work #3

Open
ivanmir opened this issue May 25, 2020 · 1 comment
Open

Production env doesn work #3

ivanmir opened this issue May 25, 2020 · 1 comment

Comments

@ivanmir
Copy link

ivanmir commented May 25, 2020

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

@scottdillon1
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants