Skip to content

Not working with rails 3.2 #12

ajbraus opened this Issue Oct 30, 2013 · 1 comment

3 participants

ajbraus commented Oct 30, 2013

I have no password on my local database so I put in:

heroku pg:transfer --to "postgres://username@localhost/project-development"

and I get

Error: undefined method url' for #<Array:0x007fdd2a8e06c0> (NoMethodError)
Backtrace: /Users//.heroku/plugins/heroku-pg-transfer/init.rb:88:in
/Users//.heroku/plugins/heroku-pg-transfer/init.rb:24:in transfer'
/Users//.rvm/gems/ruby-1.9.3-p448/gems/heroku-2.28.12/lib/heroku/cli.rb:25:in start'
/Users//.rvm/gems/ruby-1.9.3-p448/bin/heroku:23:in load'

/Users//.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in eval'

Command:     heroku pg:transfer --to postgres://bmb@localhost/bmb-development
Version:     heroku-gem/2.28.12 (x86_64-darwin11.4.2) ruby/1.9.3
rubiety commented Feb 11, 2014

I'm also running into the same issue, but it seems to be failing at init.rb line 24, which is trying resolving the from URL (defaulting to the local app's remote DATABASE_URL). I was able to get it to work by explicitly specifying a --from from heroku config:

heroku pg:transfer --from `heroku config:get DATABASE_URL` --to postgres://localhost/project-development

@ddollar ddollar closed this Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.