Skip to content

Instantly share code, notes, and snippets.

@domgetter
Created April 2, 2017 19:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domgetter/094de1a6345dfb5a75c118bffc239d16 to your computer and use it in GitHub Desktop.
Save domgetter/094de1a6345dfb5a75c118bffc239d16 to your computer and use it in GitHub Desktop.

I can connect to the database. The following works from the shell:

psql -U postgres -d tweeterclone_dev -c "SELECT * FROM users"

But in my app, this results in a Connection Refused

DB.open("postgres://postgres@localhost:5432/tweeterclone_dev")

Am I missing some magic words?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment