Database 无法从Heroku中提取db

Database 无法从Heroku中提取db,database,heroku,Database,Heroku,尝试将数据库从Hekoku拉到本地,但失败 heroku db:pull postgres://root:@localhost/db_name 诚然,我不知道该如何构建url。在官方网站上是heroku db:pushpostgres://postgres:mypass@remotehost/mydb和文章中的heroku db:pullpostgres://root:@使用了localhost/db_name。用户名和密码的用途是什么 无论如何,我收到的错误消息是: Sequel::Da

尝试将数据库从Hekoku拉到本地,但失败

heroku db:pull postgres://root:@localhost/db_name 
诚然,我不知道该如何构建url。在官方网站上是heroku db:pushpostgres://postgres:mypass@remotehost/mydb和文章中的heroku db:pullpostgres://root:@使用了localhost/db_name。用户名和密码的用途是什么

无论如何,我收到的错误消息是:

 Sequel::DatabaseConnectionError -> TypeError: wrong argument type Sequel::Postgres::Adapter (expected Struct)
按照说明更新了
轻敲、续集和pg
,以下是我的gem列表:

rest-client (1.6.7)
sinatra (1.0)
taps(0.3.24)
sequel (3.37.0, 3.20.0)
pg (0.14.0)

这个问题现在不再相关了,因为我已经从共享sqlite数据库切换到了建议的9.1开发pg数据库。因此,我将使用Heroku实际推荐的更复杂的db pull/push,而不是简单的db pull/push

你能发布完整的回溯吗?如果没有它,很难诊断问题的原因。您的应用程序是使用Activerecord,还是只是手动拉取?