【问题标题】:heroku db:push Taps Load Error:heroku db:push Taps 加载错误:
【发布时间】:2012-07-02 10:43:54
【问题描述】:

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

这里有错误

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)
    

【问题讨论】:

    标签: postgresql heroku gem taps


    【解决方案1】:

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

    【讨论】:

    • 这里只是一个注释。 Windows 上的等价物是 runas,但您可能需要特殊权限才能使用它。
    【解决方案2】:

    确保你已经安装了 ruby​​,然后:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-04
      • 1970-01-01
      • 2012-08-02
      • 2012-08-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多