2017-01-30 135 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用戶身份添加了用戶,米娜就可以正確部署。