2017-01-30 8 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

따라서 오류는 명시된 바와 같이 사용 권한 및 루트 권한으로 실행해야합니다.

루트로 배포하는 동안 다른 사용자 아래에 다른 일부 gem 폴더가 있습니다. 일단 파일의 소유권을 정리하고 사용자를 루트 사용자로 추가하면 mina가 올바르게 배포됩니다.