Created
July 26, 2016 16:05
-
-
Save mikehale/494d8af1aed6dc9e5f8f724db3401062 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`ruby -ruri -e 'uri = URI.parse(ENV["DATABASE_URL"]); puts %(env PGPASSWORD=#{uri.password} psql --dbname=#{uri.path[1..-1]} --host=#{uri.host} --port=#{uri.port} --username=#{uri.user} --no-password)'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment