【问题标题】:no such file to load -- bundler/setup when capistrano deploy没有这样的文件要加载——capistrano 部署时的捆绑器/设置
【发布时间】:2013-01-28 22:46:19
【问题描述】:

问题是什么?捆绑器安装在远程机器上。这是错误:

【问题讨论】:

    标签: ruby-on-rails rake capistrano bundle


    【解决方案1】:

    确保 Bundler 安装在系统级别而不是用户级别。您还可以使用 Capistrano shell 安装 Bundler,假设 Capistrano 部署为具有密码和 sudo 访问权限的用户。

    例子:

    $ cap shell         # from within your project
    
    cap> sudo apt-get install rubygems      # or however you prefer to 
                                            # install rubygems on your box
    
    ...
    ...  # output
    ...
    
    cap> sudo gem install bundler
    

    【讨论】:

      猜你喜欢
      • 2012-03-11
      • 1970-01-01
      • 2013-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多