首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku客户端内部错误,未定义方法`database_session‘

Heroku客户端内部错误,未定义方法`database_session‘
EN

Stack Overflow用户
提问于 2013-10-07 16:20:11
回答 1查看 189关注 0票数 0

我试图从我的heroku遥控器中提取数据库,但是得到了这条错误消息。

好了!Heroku客户端内部错误。好了!搜索帮助:https://help.heroku.com!或在:https://github.com/heroku/heroku/issues/new上报告错误

代码语言:javascript
复制
Error:       undefined method `database_session' for #<Heroku::Client:0x007fba0d5a2f20> (NoMethodError)
Backtrace:   /Users/christopheprakash/.heroku/plugins/heroku-taps/lib/taps/heroku/command/db.rb:217:in `taps_client'
             /Users/christopheprakash/.heroku/plugins/heroku-taps/lib/taps/heroku/command/db.rb:64:in `pull'
             /Users/christopheprakash/.heroku/client/lib/heroku/command.rb:213:in `run'
             /Users/christopheprakash/.heroku/client/lib/heroku/cli.rb:28:in `start'
             /usr/local/Cellar/heroku-toolbelt/2.40.0/libexec/bin/heroku:24:in `<main>'

Command:     heroku db:pull sqlite://db/development.sqlite3
Plugins:     heroku-taps
Version:     heroku-toolbelt/3.0.0 (x86_64-darwin12.4.0) ruby/1.9.3

我直接从heroku下载了工具箱,然后通过https://github.com/heroku/heroku-taps.git安装了taps插件。

知道怎么解决这个问题吗?

谢谢!

编辑:我已经尝试过Heroku提供的命令的每一个变体,但是仍然是相同的错误!

EN

回答 1

Stack Overflow用户

发布于 2013-10-07 16:33:55

更改您的Gemfile

代码语言:javascript
复制
group :development, :test do
  gem 'sqlite3'
end
group :production
  gem 'pg'
end

然后bundle install,再次推荐并再次推到heroku

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19229797

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档