Austin Story

Ruby, Rails and Javascript Blog

Powered by Genesis

Local Copy of Heroku

August 29, 2016 By Austin Story Leave a Comment

Magic command to get a copy of heroku database locally.

local_database = name of your postgres database, will normally be app_name_development
remote_heroku_url = the subdomain before herokuapp.com at heroku

heroku pg:pull DATABASE_URL local_database –app remote_heroku_url

copy one to another

heroku pg:copy production-url::DATABASE_URL DATABASE_URL –app staging-url

Filed Under: Uncategorized

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AngularJS
  • Books
  • Devise
  • Elasticsearch
  • ES6
  • Information Security
  • Integrations
  • Javascript
  • Linux
  • Minitest
  • PhoneGap
  • Programming
  • React
  • Redux
  • Ruby
  • Ruby on Rails
  • Stripe
  • Testing
  • Theory
  • TypeScript
  • Uncategorized
  • Vue
  • Webpack