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

Fix:2964 obtain Postgres DB URL from ENV using branches get command #2996

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

yaten2302
Copy link

What kind of change does this PR introduce?

This PR introduces a new feature to enable users to obtain the Postgres db url from the .env using the branches get command.

What is the current behavior?

Fixes #2964

What is the new behavior?

This PR adds a new flag to the branches get command to help users to get the postgres db url from the env.

Additional context

Add any other context or screenshots.

@yaten2302
Copy link
Author

@sweatybridge , I've a doubt, that as you mentioned in this comment, that a new --output flag should be added to the branches get command. But, while implementing that, it's showing an error that the output flag is being redeclared. So, is it possible that instead of using the output flag, we can use a Boolean var postgres-url?

Also, as you mentioned, that the postgres_url and prostgres_url_non_pooling has to be added if this flag is mentioned with the command and the code can be reused from the bootstrap command. But, while I was checking the writeDotEnv func, it writes the complete thing to the .env file. But, I'm confused that how can I get the postgres_db_url from the writeDotEnv func? Because, I was having some issues in adding the postgres_db_url to the resp, could you guide that how can I add the same to the resp, so that it can be used to display it on the output table for the user.

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.

Obtaining DB_URL from the CLI
1 participant