1

根据将数据推送到heroku postgres,是否有人面临这个问题heroku db:push

这是错误

D:\workspace\gitrepo\xxx> heroku db:push

 !    Taps Load Error: no such file to load -- taps/operation
 !    You may need to install or update the taps gem to use db commands.
 !    On most systems this will be:
 !
 !    sudo gem install taps

发生此错误后,我尝试使用添加类似这样的 Database_url

D:\workspace\gitrepo\xxx> heroku db:push postgres://postgres:mypassword@localhost:5432

它显示相同的错误

所以我尝试使用命令重新安装新水龙头

sudo heroku install taps

显示错误

'sudo' is not recognized as an internal or external command,
operable program or batch file.

我的工作站信息

  • 操作系统:窗口 7
  • Heroku Toolbelt 最新版本于 2012 年 7 月 2 日下载
  • 宝石

    D:\workspace\gitrepo\xxx> gem list
    
    *** LOCAL GEMS ***
    
    foreman (0.47.0, 0.45.0)
    mime-types (1.18)
    minitest (1.6.0)
    rack (1.4.1)
    rake (0.8.7)
    rdoc (2.5.8)
    rest-client (1.6.7)
    sequel (3.20.0)
    sinatra (1.0)
    taps (0.3.24)
    thor (0.15.0)
    
4

2 回答 2

1

sudo 是一个linux命令。从您的问题看来,您使用的是 Windows 7。因此,这对您不起作用。

于 2012-07-02T22:48:16.703 回答
0

确保您已安装 ruby​​,然后:

打开命令 shell(‘Start’ >> ‘Run’ >> ‘cmd’)并导航到 rubybin​​ 目录。通常这将C:\ruby运行gem install taps –include-dependencies;这应该安装 gem。

于 2012-07-17T14:53:26.880 回答