Answers for "push local postgres to heroku database"

3

how to push database to heroku

heroku run rails db:migrate
Posted by: Guest on February-17-2020
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

Code answers related to "push local postgres to heroku database"

Browse Popular Code Answers by Language