我想使用Capistrano的部署到Ubuntu的服務器,並收到以下錯誤進行部署時沒有安裝捆紮機:Ruby on Rails的:使用Capistrano的
Executing "cd /home/useracc/www/releases/20130420101911 && bundle install --gemfile /home/useracc/www/releases/20130420101911/Gemfile --path /home/useracc/www/shared/bundle --deployment --quiet --without development test"
servers: ["dev.website.com"]
[dev.self-sale.com] executing command
** [out :: dev.website.com] ERROR: Gem bundler is not installed, run `gem install bundler` first.
** [out :: dev.website.com]
command finished in 510ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/useracc/www/releases/20130420101911; true"
servers: ["dev.website.com"]
[dev.self-sale.com] executing command
command finished in 613ms
failed: "sh -c 'cd /home/selfsale/www/releases/20130420101911 && bundle install --gemfile /home/useracc/www/releases/20130420101911/Gemfile --path /home/useracc/www/shared/bundle --deployment --quiet --without development test'" on dev.website.com
我已經做了一些搜索和發現,一些人通過將require「bundler/capistrano」放在deploy.rb中解決了這個問題。
我試過了,但沒有任何區別。
我也曾嘗試在服務器上安裝捆綁而獲得:
$ gem install bundler
Fetching: bundler-1.3.5.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/rvm/gems/ruby-1.8.7-p371 directory.
我不記得設置RVM起來的,所以這是一個有點混亂給我。
有沒有人有任何建議?
這是一箇舊的應用程序順便說一句,這是我的寶石列表:
%束EXEC寶石列表
*當地的寶石*
的ActionMailer(2.3.14) ActionPack的(2.3 0.14) ActiveRecord的(2.3.14) 的ActiveResource(2.3.14) 的ActiveSupport(2.3.14) brightbox(2.3.9) 捆綁(1.3.5) Capistrano的(2.14.2) 高架(1.6.16) 鋤(3.5.2) 角度來說,Hpricot(0.8.2) HTMLDOC(0.2.3) JSON(1.7.7) MACADDR(1.6.1) MySQL的(2.9.1) net-scp(1.1.0) net-sftp(2.1.1) net-ssh(2.6.7) net-ssh-gateway(1.2.0) paginator(1.1.1) 機架(1.1.6) 導軌(2.3.14) 耙(10.0.4) 的RDoc(4.0.1) RedCloth(4.2.9) rmagick(2.13.1) systemu(2.5.2) uuid(2.0.2) will_paginate(2.3.16) wkhtmltopdf二進制(0.9.9.1)
感謝
感謝@ shrikant1712,到底我需要重新安裝RVM作爲我的本地用戶,而根,因爲我是了權限錯誤。 – 2013-04-20 14:35:10