SAP-samples / btp-cap-multitenant-saas

Sample project that demonstrates how to setup a multitenant application for a Software-as-a-Service scenario, leveraging the Kyma and Cloud Foundry Runtimes of the SAP Business Technology Platform. Developers learn how to implement their own CAP (mtxs) based SaaS app including an SaaS API and integration with various essential SAP BTP service of...
Apache License 2.0
89 stars 42 forks source link

Deployment fix kyma #49

Closed alperdedeoglu closed 2 months ago

alperdedeoglu commented 2 months ago

This fixes two crucial deployment problems on Kyma version of the repo:

  1. Service Replacements was not working for Common DB container, because CAP Emulation is currently overwriting the tenant HDI container with common HDI container. This was causing the bug. To overcome this, common-db is removed from the .cdsrc.json file and VCAP emulation is done by application in the server.js.
  2. HDI dependencies were calculated wrong, @cds.persistence.exists annotation somehow is not considered and hdi-deployer somehow wanted to create the common db content also in the tenant container. This was also fixed with some folder rearrangement.

Feel free to contact if there are any questions.