即使我使用了heroku db,我也收到了这条消息:拉百万次.出于某种原因,即使我甚至没有触及我的代码,它也不再有效.有任何想法吗?
完整的错误消息是
db:pull不是heroku命令.也许您的意思是pg:pull
查看heroku help可用命令的列表.
我有一个在开发和生产中使用postgres的应用程序.我最近推到了heroku,一切都很好.我能够从heroku中提取数据库并且没有任何问题地向后推.然而今天,我试图将数据库从heroku中拉下来,我收到了这个错误
heroku db:pull
Loaded Taps v0.3.24
Auto-detected local database: postgres://postgres:a@127.0.0.1/app_development?encoding=utf8
Warning: Data in the database 'postgres://postgres:a@127.0.0.1/app_development?encoding=utf8' will be overwritten and will not be recoverable.
! WARNING: Destructive Action
! This command will affect the app: app
! To proceed, type "app" or re-run this command with --confirm app
> app
Receiving schema
Unable to fetch tables information from http://heroku:osui59a24am79x@taps19.heroku.com. Please check the server log.
Run Code Online (Sandbox Code Playgroud)
所以我heroku logs追赶:
james@james-Vostro-3550:~/Desktop/app$ heroku logs
2012-09-25T10:08:32+00:00 app[web.1]: Started GET "/users" for X.X.X.X at 2012-09-25 …Run Code Online (Sandbox Code Playgroud)