Skip to content

Instantly share code, notes, and snippets.

@alex-zige
Forked from trey/heroku_db_pull.md
Last active December 16, 2015 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-zige/5485487 to your computer and use it in GitHub Desktop.
Save alex-zige/5485487 to your computer and use it in GitHub Desktop.

Getting heroku db:pull to Work

$ rvm install 1.9.2
  • I had to do this business per the instructions I saw when I ran that command:
$ brew update
$ brew tap homebrew/dupes
$ brew install autoconf automake apple-gcc42
$ rvm pkg install openssl
$ rvm reinstall all --force
  • Use Ruby 1.9.2
$ rvm use 1.9.2
  • Install heroku, taps, pg, and sqlite3 (for some reason)
$ gem install heroku
$ gem install taps
$ gem install pg
$ gem install sqlite3

There. Now you can do something cool like:

$ heroku db:pull postgres://localhost/yourdatabase

You should not have to use sudo on any of those commands.

It took me a long time to realize that I needed to use Ruby 1.9.2 to get this to work.

#Quick Win

in your Gemfile, add the taps gem into development group.

gem 'taps', :require => false

Then run bundle install

after this, try heroku db:pull --app xxx again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment