运行“rvm rvmrc trust”时cap部署失败

时间:2013-04-15 23:06:57

标签: ruby-on-rails deployment rvm capistrano rvm-capistrano

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

没有旧版本来清理

在“部署”回调后触发

  

2013-04-16 10:59:15执行`rvm:trust_rvmrc'
  执行“rvm rvmrc trust / 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信任,也失败了..

  

xxxx-iMac:iv所有者$ rvm rvmrc信任标记   /Users/Owner/Documents/workspace/iv/.rvmrc为可信任 - 失败

0 个答案:

没有答案