Open andychan94 opened 8 years ago
+1
Don't run the command in the "mysql2postgres/" directory, where you've built mysql2postgres. Run it outside, where your configuration yaml file is located.
I have installed 'mysqltopostgres-0.3.0.gem' successfully, but when I execute the mysqltopostgres
command(In my Project/config dir, where database.yml file located ), I got errors:
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in 'to_specs': Could not find mysqltopostgres (>= 0) amongst [actionmailer-4.2.5.1, actionpack-4.2.5.1, actionview-4.2.5.1, activejob-4.2.5.1, activemodel-4.2.5.1, activerecord-4.2.5.1,
.....
web-console-2.3.0, will_paginate-3.1.5] (Gem::LoadError)
from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in 'to_spec'
from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in 'gem'
from /usr/local/bin/mysqltopostgres:22:in '<main>'
I am trying to deploy my php app that uses mysql db to heroku. I followed instructions here -
The sudo gem install mysqltopostgres-0.3.0.gem command executed without errors:
but when I try to execute the
mysqltopostgres
command, the following errors occur:I then tried to prepend bundle exec:
Heroku devs told me post an issue here. Thanks in advance