首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mina Deploy "Bundle is locked to rake“

Mina Deploy "Bundle is locked to rake“
EN

Stack Overflow用户
提问于 2017-01-30 13:24:36
回答 2查看 321关注 0票数 0

运行后

代码语言:javascript
复制
mina deploy

我得到了这个错误

代码语言:javascript
复制
 mina deploy

-----> Creating a temporary build path
-----> Fetching new git commits
-----> Using git branch 'master'
       Cloning into '.'...
       done.
-----> Using this git commit
       root (e1bd364):
       > fixes fo rmina
-----> Symlinking shared paths
-----> Installing gem dependencies using Bundler
       Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
       installing your bundle as root will break this application for all non-root
       users on this machine.
       Your Gemfile has no gem server sources. If you need gems that are not already on
       your machine, add a line like this to your Gemfile:
       source 'https://rubygems.org'
       Your bundle is locked to rake (12.0.0), but that version could not be found in
       any of the sources listed in your Gemfile. If you haven't changed sources, that
       means the author of rake (12.0.0) has removed it. You'll need to update your
       bundle to a different version of rake (12.0.0) that hasn't been removed in order
       to install.
 !     ERROR: Deploy failed.
-----> Cleaning up build
       Unlinking current
       OK
       Connection to app.com closed.

 !     Run Error

如果我运行bundle show rake,我会看到以下内容

代码语言:javascript
复制
/var/lib/gems/2.3.0/gems/rake-12.0.0

我试着在应用程序/供应商中查找,但bundler不在那里。我尝试使用捆绑包安装和捆绑包更新。

更新:

我检查了一下,源代码'https:rubygems.org‘在我的and文件中。

我尝试运行包安装部署

代码语言:javascript
复制
 bundle install --deployment 

也遇到了同样的错误。

EN

回答 2

Stack Overflow用户

发布于 2017-01-30 13:36:37

你的Gemfile没有gem服务器源。如果您需要尚未在您的计算机上的gem,请在Gemfile中添加如下一行:

源'https://rubygems.org

在您的Gemfile中似乎没有指定gem源

您可以尝试将此行添加到Gemfile的顶部

代码语言:javascript
复制
source 'https://rubygems.org'

然后重试

票数 0
EN

Stack Overflow用户

发布于 2017-02-24 15:22:07

因此,这个问题与权限有关,并像错误所述那样以root身份运行。

我将mina和其他一些gem文件夹放在一个不同的用户下,同时以root用户身份进行部署。一旦我清除了文件的所有权,并将用户添加为根用户,mina就可以正确部署了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41929473

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档