dwyl / learn-heroku

:checkered_flag: Learn how to deploy your web application to Heroku from scratch step-by-step in 7 minutes!
153 stars 395 forks source link

How to View PostgreSQL Data from Heroku App? #42

Open nelsonic opened 4 years ago

nelsonic commented 4 years ago

I googled for this question https://www.google.com/search?q=heroku+view+postgres+data and the first 3 results were:

The StackOverflow thread links to Heroku Data Explorer > renamed "Adminium"

image

image

But sadly, Adminium requires access to ALL environment variables on ALL Apps.

"Read and write access to all of your apps and resources, excluding account information. Includes configuration variables, which may include runtime secrets."

adminium-wants-access-to-everything

If it was limited to just the App I want to view data for, I would be fine with it. But we have apps that have AWS credentials in Environment Variables, and there's no way I would grant access to those to anyone.

To be clear: I've been using Heroku for 8 years and querying the data using the CLI e.g: heroku pg:psql but that is definitely not "beginner friendly" or accessible to non-technical people (e.g: Product Owner)

I'm going to do a writeup of using PGAdmin to view/query Heroku PostgreSQL Data.