cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CDS --profile hybrid

Raphael
Explorer
0 Likes
3,350

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.

Accepted Solutions (1)

Accepted Solutions (1)

Bibhu
Participant

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-bindings

For 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:

Bibhu_0-1727256319145.png

Answers (1)

Answers (1)

Dinu
Active Contributor

add `--resolve-bindings` option to resolve bindings for hybrid. 

Raphael
Explorer
0 Likes
What command would that be? Is it a different command to bind the services in the first place or a different command to start my app?
Bibhu
Participant
cds serve --profile hybrid --resolve-bindings