on ‎2024 Aug 27 8:10 AM
I have used the cds bind command to hybrid test my application.
When I launch my application with `cds watch --profile hybrid` everything works fine and I connect to the HANA Database. When I try using `cds run --profile hybrid` or `cds serve --profile hybrid` the application still runs but I just connect to a local sqlite.
Has anyone tried using --profile hybrid with run or serve and managed to get it to work?
Any help is appreciated.
Request clarification before answering.
Thank you for pointing it out @Dinu
To resolve the issue when using cds run --profile hybrid or cds serve --profile hybrid connecting to the HANA Database instead of local SQLite, try adding the --resolve-bindings flag.
This ensures that the credentials of the service bindings from the cloud are correctly pulled
cds serve --profile hybrid --resolve-bindingsFor example, when running your app in the development profile with cds:
cds serve --profile development --resolve-bindings
This will make sure the application retrieves service bindings (e.g., credentials for external databases like HANA) from the cloud even while using the development profile.
This setup helps simulate cloud services locally during development, ensuring consistency when switching to hybrid or production environments.
Feature added on:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
add `--resolve-bindings` option to resolve bindings for hybrid.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.