繁体   English   中英

Mina Deploy“捆绑被锁定为耙”

[英]Mina Deploy “Bundle is locked to rake”

跑步后

mina deploy

我得到这个错误

 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

如果我运行捆绑表演耙,我会看到这个

/var/lib/gems/2.3.0/gems/rake-12.0.0

我尝试在应用程序/供应商中查找并且捆绑程序不存在。 我尝试使用捆绑包安装和捆绑包更新。

更新:

我检查并在我的gemfile中找到源“ https:rubygems.org”。

我尝试运行捆绑安装部署

 bundle install --deployment 

并遇到相同的错误。

您的Gemfile没有gem服务器源。 如果您需要的机器上没有的宝石,请在Gemfile中添加以下行:

 source 'https://rubygems.org' 

好像您的Gemfile没有指定gem来源

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

source 'https://rubygems.org'

然后再试一次

因此,该问题与权限有关,并且按照错误所述以root用户身份运行。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM