简体   繁体   English

Heroku db:push -> Missing Sequel gem

[英]Heroku db:push -> Missing Sequel gem

I'm trying to push my local MySQL database to Heroku's ClearDB MySQL database.我正在尝试将我的本地 MySQL 数据库推送到 Heroku 的 ClearDB MySQL 数据库。 I've gone through a lot of errors of missing gems and such, and am getting stuck on one.我经历了很多丢失宝石之类的错误,并且我陷入了一个困境。 I'm running:我在跑:

heroku db:push mysql://user:password@localhost/db

It prompts me to enter the application name to confirm, and then I get a many errors looking like:它提示我输入应用程序名称进行确认,然后出现许多错误,如下所示:

/usr/local/lib/site_ruby/1.8/rubygems.rb:779:in
`report_activate_error': Could not find RubyGem sequel (~> 3.20.0)
(Gem::LoadError)                                                 |
ETA:  --:--:--  from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in
`activate'  from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in
`gem'   from /var/lib/gems/1.9.1/gems/taps-0.3.23/bin/schema:4

which is weird, because I have the Sequel gem installed, and the correct version (3.20.0).这很奇怪,因为我安装了 Sequel gem 和正确的版本 (3.20.0)。 I've tried doing a complete reinstall of all my gems, and still have had no luck.我试过完全重新安装我的所有宝石,但仍然没有运气。

我不确定您是否可以将 Heroku db:push 用于 ClearDB - 我只是做了一个本地 mySQL 备份,然后将其直接恢复到 ClearDB 实例上 - 您可以从应用程序中的heroku config输出中获取登录凭据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM