新手问题 heroku run rake db:migrate 执行后出错

shangchen · 2013年06月05日 · 最后由 shangchen 回复于 2013年06月06日 · 3053 次阅读

DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins!
Support for these plugins will be removed in Rails 4.0. Move them out
and bundle them in your Gemfile, or fold them in to your app as
lib/myplugin/* and config/initializers/myplugin.rb.See the release
notes for more on this:
http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from at /app/Rakefile:7)

有以上提示,请问该怎么解决呢?多谢!

我没找准问题,上面部分只是警告信息,紧跟后面还有这段信息: rake aborted! Invalid DATABASE_URL

Tasks: TOP => db:migrate => db:load_config (See full trace by running task with --trace) 应该我执行 migrate 创建表的时候提示数据库路径错误,这个问题该怎么解决呢,多谢了!

有加 gem pg 吗?

可以运行 heroku run "rake db:migrate --trace" 拿到完整的错误

Using pg:transfer to Migrate Postgres Databases heroku pg:transfer -f 本机的数据库地址 -t heroku 的数据库地址

现在总是出现 heroku client internal error 错误,不知道是不是因为被墙的原因,我是用的虚拟机上的 Linux,请问要翻墙操作的话该怎么弄呢

需要 登录 后方可回复, 如果你还没有账号请 注册新账号