Answers for "heroku pg:psql"

3

connect to db heroku

heroku pg:psql -f schema.sql -a HEROKU_APP_NAME
Posted by: Guest on July-28-2020
0

create heroku add on postgres

heroku addons:create heroku-postgresql:hobby-dev
Posted by: Guest on June-10-2021
0

how to find my postgres hostname heorku

heroku pg:credentials:url
Posted by: Guest on August-17-2020
0

heroku cli connect to postgres

$ PGUSER=postgres PGPASSWORD=password heroku pg:pull HEROKU_POSTGRESQL_MAGENTA mylocaldb --app sushi
Posted by: Guest on July-28-2021
0

local pg_sql to heroku pg_sql

# set the password in an environment variable
export PGPASSWORD=mypassword # linux/mac
set PGPASSWORD=mypassword # windows
# create the database dump
$ pg_dump -Fc --no-acl --no-owner -h localhost -U myuser mydb > mydb.dump
Posted by: Guest on October-22-2021

Browse Popular Code Answers by Language