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

gracefully handle the REPL being missing #50

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

gracefully handle the REPL being missing #50

wants to merge 5 commits into from

Conversation

afeld
Copy link
Contributor

@afeld afeld commented Jan 2, 2018

Closes #48. Builds on #44 - diff.

If the REPL corresponding to the desired service can't be found, fall back to -no-client behavior.

$ which psql
psql not found
$ cf connect-to-service myapp mydb
Finding the service instance details...
Setting up SSH tunnel...
SSH tunnel created.
Executable `psql` not found.
Falling back to `-no-client` behavior.
Skipping call to client CLI. Connection information:

Host: localhost
Port: 58923
Username: myuser
Password: mypass
Name: dbname

To connect:

    PGPASSWORD=mypass psql -h localhost -p 58923 dbname myuser

Leave this terminal open while you want to use the SSH tunnel. Press Control-C to stop.

@afeld afeld requested a review from pburkholder January 2, 2018 06:43
@markdboyd markdboyd changed the base branch from master to main April 17, 2023 13:33
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.

1 participant