2017-01-30 50 views
0

运行米娜部署“捆绑被锁定耙”

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 

我试过后看在应用程序/供应商和打包机不在那里。我尝试使用软件包安装和软件包更新。

更新:

我检查和来源的 'https:rubygems.org' 是我的Gemfile。

我试图运行包安装部署

bundle install --deployment 

跑进了同样的错误。

回答

0

您的Gemfile没有宝石服务器源。如果您需要将已经是你的机器上的宝石,加上这样一行到你的Gemfile:

source 'https://rubygems.org' 

好像有你的Gemfile

您可以尝试指定没有宝石源加入这一行以您的Gemfile

source 'https://rubygems.org' 

顶部,然后再试

+0

不幸的是,这并没有解决问题。我得到了同样的错误 – user2723240

0

所以这个问题必须与权限和作为根运行的错误声明。

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