這是我第一次部署和獲取錯誤。Capistrano針對rails部署失敗錯誤 - 未找到包含:
這裏是我的deploy.rb文件 需要 '捆綁/ Capistrano的' 集:應用程序, 「應用程序」
set :scm, :git
set :repository, "[email protected]:myname/#{application}.git"
set :branch, "master"
server "198.12.78.92", :web, :app, :db, primary: true
set :user, "myname"
set :deploy_to, "/home/#{user}/public_html/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end
這裏是我得到的錯誤。
*** [deploy:update_code] rolling back
* executing "rm -rf /home/myname/public_html/app/releases/20130313073408; true"
servers: ["198.12.78.92"]
[198.12.78.92] executing command
command finished in 891ms
failed: "sh -c 'cp -RPp /home/myname/public_html/app/shared/cached-copy /home/myname/public_html/app/releases/20130313073408 && (echo dd92017bc8bb7f951df52d6a14c933e3033fd24b > /home/myname/public_html/app/releases/20130313073408/REVISION)'" on 198.12.78.92
編輯 - 我有評論「載:deploy_via,:remote_cache」現在越來越束:沒有發現錯誤,雖然
我有一個類似的問題,我得到「捆綁未找到」。我非常肯定它與我使用RVM的事實有關,它是在.bashrc中設置的,在使用「sh」shell時不會使用它。因此,即使認爲你可以在交互式shell(比如bash)中找到ruby和bundle,也找不到它。在修復工作,但我不是unix大師,所以我還沒有答案。然而,使用「cap deploy:check」和「cap shell」,然後使用「on bundle」來獲取一些信息性的錯誤消息。 –
2013-03-22 13:06:19