2017-01-30 9 views
0

私はバンドルショーの熊手を実行する場合ミナ展開

mina deploy 

は、私は私が試したこの

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

参照このエラー

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 

を取得し実行した後、「バンドルは、熊手するためにロックされています」 app/vendorを探していて、bundlerはそこにいません。私はバンドルのインストールとバンドルのアップデートを使ってみました。

アップデート:私がチェック

とソースが 'httpsを:rubygems.org' 私のgemfileです。

私はバンドルが

bundle install --deployment 

展開をインストールし実行してみましたし、同じエラーに遭遇しました。

答えて

0

あなたのGemfileには宝石サーバーのソースがありません。あなたのマシン上にまだ入っていない宝石が必要な場合は、お使いのGemfileに次のような行を追加します。

source 'https://rubygems.org' 

はあなたGemfile

に指定されていません宝石の源がないようにあなたがしようとしているようですあなたのGemfile

source 'https://rubygems.org' 

の先頭に次の行を追加し、再度

を試してみてください
+0

残念ながら、それは問題を解決しませんでした。同じエラーが出た – user2723240

0

したがって、問題は、エラーが述べたように、アクセス許可とルートとして実行する必要がありました。

rootとしてデプロイしている間に、私はminaと他のgemフォルダのいくつかを別のユーザの下に持っていました。一度私はファイルの所有権をクリアし、rootユーザーとしてユーザーを追加したが、minaは正しく展開されていた。