当使用ext/multistage时,为什么在阶段(production.rb)中设置的变量在deploy.rb中不可用?中:set :vhost, "/var/www/#{domain}"undefined local variable or method `domain' for #<Capistrano
我正在部署到一个运行在environment=development中的暂存服务器。我的部署脚本在消息Could not find gem 'webmock (>= 0) ruby' in the gems available on this machine.中失败,但我不明白为什么脚本需要这个gem,因为我的Gemfile只在test组中列出了它。我的部署脚本executing ["cd /var/www/clu2/staging/releases/20130429