-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Allow additional psql argument #173
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. One tiny change in the code, and could you put your PR description in the commit description along with a README change to show how someone could use this?
@@ -18,6 +24,7 @@ def run | |||
PROTECTED_ENVIRONMENTS = %w(development production) | |||
|
|||
attr_accessor :app_argument, :environment, :subcommand, :arguments | |||
attr_accessor :psql_argument |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this join the above attr_accessor
s?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
@geoffharcourt I'll update README. Did you mean I put the PR description into the next commit desc? I thought GitHub will automatically put the PR desc into the merge commit desc when we click merge button? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's some CI failures to resolve.
@elquimista I think it only does that with merge commits, which we haven't used on this project. With the "Rebase and Merge" button or "Squash and Merge" button the commit history is retained but not replaced with the PR. |
@geoffharcourt I'll do that then, no problem. Which one do we do exactly btw, Squash or Rebase? |
@elquimista sorry for the delay! I'll merge it with dispatch. Thanks for your contribution! |
Allows using parity with non-default pg config (non-socket, different host, different username, with password etc), e.g. in local docker container environment with pg as a linked service (specified in docker-compose.yml).
One can create a customized version of
development
bin file and do the following:combined with
PGPASSWORD
env variable to run pg command lines non-interactively.