1

我已将变量设置为必要的路径,但 Capistrano 在目录deploy_to中运行单个任务。u/app/

这是正在运行的任务

executing "cat /u/apps/application/current/REVISION"

这就是设置变量的方式

set :application, "application"
set :deploy_to, "normal_path/#{application}"

它发生的部分日志在这里:

  * executing "cat /normal_path/applicaiton/TOUCH_ASSETS | while read asset; do touch -cm -- \"$asset\"; done && rm -f -- /normal/TOUCH_ASSETS"
servers: ["1.1.1.1"]
[1.1.1.1] executing command
command finished in 992ms
* executing "cat /u/apps/application/current/REVISION"
servers: ["1.1.1.1"]
[1.1.1.1] executing command
command finished in 427ms
*** [deploy:update_code] rolling back
* executing "rm -rf /normal_path/applicaiton/releases/20130610233146; true"
servers: ["1.1.1.1", "1.1.1.2"]
[1.1.1.1] executing command
[1.1.1.1] executing command
command finished in 486ms
failed: "sh -c 'cat /u/apps/application/current/REVISION'" on 1.1.1.1

为什么 Capistrano 使用错误的路径?

4

0 回答 0