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

Use deploy --out instead of stdout #1258

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Use deploy --out instead of stdout #1258

merged 1 commit into from
Sep 24, 2024

Conversation

chgeo
Copy link
Member

@chgeo chgeo commented Sep 17, 2024

The new param cds deploy --out <file> allows writing DDL statements to a separate file.

This is needed by CAP Java to replace their stdout redirection (cds deploy --dry > schema.sql). That one fails if debug traces are on as these mess up the output.

So,

cds deploy --to h2 --dry > schema.sql

can change to

cds deploy --to h2 --dry --out schema.sql

Also, one can now request the log independently of the dry mode to get an additional log:

cds deploy --to h2 --out schema.sql

@chgeo chgeo marked this pull request as ready for review September 18, 2024 07:16
@chgeo
Copy link
Member Author

chgeo commented Sep 18, 2024

@mofterdinger can you review this one?

@chgeo
Copy link
Member Author

chgeo commented Sep 18, 2024

BTW: we have also added a check in cds deploy that will error if the sap/cds version is too old to understand --out (versions < 8.3.0). This way we detect mismatches between @sap/cds-dk and @sap/cds versions.

@chgeo chgeo merged commit 698ef28 into main Sep 24, 2024
4 checks passed
@chgeo chgeo deleted the deploy-out branch September 24, 2024 12:28
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