1

使用 Capistrano 首次成功部署后,运行 cap deploy 失败:

没有要清理的旧版本

在“部署”回调后触发

2013-04-16 10:59:15 执行“rvm:trust_rvmrc”
执行“rvm rvmrc 信任/home/app/xxxx/releases/20130415225133”

servers: ["191.199.74.146"]
[191.199.74.146] executing command

[err :: 191.199.74.146] 将 /home/app/xxxx/releases/20130415225133/.rvmrc 标记为受信任 - 失败

将以下代码放入 deploy.rb 时发生错误:

namespace :assets do
  desc "Precompile assets locally and then rsync to app servers"
  task :precompile, :only => { :primary => true } do
    run_locally "mkdir -p public/__assets; mv public/__assets public/assets;"
    run_locally "bundle exec rake assets:clean_expired; bundle exec rake assets:precompile;"
    servers = find_servers :roles => [:app], :except => { :no_release => true }
    servers.each do |server|
      run_locally "rsync -av ./public/assets/ #{user}@#{server}:#{current_path}/public/assets/;"
    end
    run_locally "mv public/assets public/__assets"
  end
end

更新

我在本地执行了 rvm rvmrc trust,也失败了..

xxxx-iMac:iv Owner$ rvm rvmrc trust 标记为 /Users/Owner/Documents/workspace/iv/.rvmrc 为受信任 - 失败

4

0 回答 0