on 2023 Feb 17 10:21 AM
Hi ,
I am using CAP for build an application on HANA Cloud. I have used CSV file to do some testing. However, while deploying to production, i want to ignore those files?
Is it possible by some configuration (for example in Package.json)?
Regards,
nitin
The better solution might be to move the CSV files containing test data to the folder test/data.
cds watch is loading CSV files contained in the test folder by default while cds watch --production does not. Same holds true for production build and deployments, e.g. cds build --production, cds deploy --to hana --production.
Make sure that CSV files intended for testing aren't deployed to production by mistake as this would impact subsequent HANA deployments.
See also [providing initial data](https://cap.cloud.sap/docs/guides/databases#providing-initial-data).
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 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.