0
试图从Hekoku拉数据库到本地,但失败。未能从Heroku中拉数据库
heroku db:pull postgres://root:@localhost/db_name
无可否认,我不知道该如何构造url。在官方site中是heroku db:push postgres://postgres:[email protected]/mydb
,而在this中使用了文章heroku db:pull postgres://root:@localhost/db_name
。用户名和密码的用途是什么?
无论如何,我得到了错误的信息是:
Sequel::DatabaseConnectionError -> TypeError: wrong argument type Sequel::Postgres::Adapter (expected Struct)
说完之后更新的说明taps, sequel, and pg
,这里是我的宝石列表:
rest-client (1.6.7)
sinatra (1.0)
taps(0.3.24)
sequel (3.37.0, 3.20.0)
pg (0.14.0)
你可以发布完整的回溯?没有它就很难诊断问题的原因。 – 2012-07-06 16:10:26
你的应用程序是否使用Activerecord,或者你只是手动拉动它? – 2012-07-06 16:34:35