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

matched database name with script #187

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcellourbani
Copy link

@marcellourbani marcellourbani commented Dec 8, 2021

Hi Gregor
Tyny change but gave me a bit of a headache.
The name in VCAP_SERVICES must match the service deployed
Default is db and we don't specify another in the command line

PS: default-env.json is deprecated. I got it to work with .env:

cds_requires_db = { "name": "postgres", "label": "postgres", "tags": ["plain"], "credentials": { "host": "localhost", "port": "5432", "database": "beershop","dbname":"beershop", "user": "postgres", "password": "postgres" } }

but only if I set dbname too :)

@gregorwolf
Copy link
Owner

Hi @marcellourbani,

thank you for your PR. Where have you found an indication that default-env.json is deprecated? I don't find anything in this direction at https://cap.cloud.sap/docs/search?q=default-env.json.

Best Regards
Gregor

@marcellourbani
Copy link
Author

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

Successfully merging this pull request may close these issues.

2 participants