部署失败,因为无法从版本文件夹中移动“当前”符号链接

时间:2018-01-20 14:11:38

标签: macos ruby-on-rails-5 capistrano3

当部署进入“deploy:symlink:release”时,它会失败,因为显然当前版本的符号链接被解释为文件夹,因此“mv”命令(没有-r)拒绝移动它。我正在部署到Mac,这是错误日志:

00:33 deploy:symlink:release
      01 ln -s /Users/jean/www/rails_app/app/releases/20180120135811 /Users/jean/www/rails_app/app/releases/current
    ✔ 01 jean@blizzard.local 0.171s
      02 mv /Users/jean/www/rails_app/app/releases/current /Users/jean/www/rails_app/app
      02 mv: rename /Users/jean/www/rails_app/app/releases/current to /Users/jean/www/rails_app/app/current: Is a directory

(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as jean@blizzard.local: mv exit status: 1
mv stdout: mv: rename /Users/jean/www/rails_app/app/releases/current to /Users/jean/www/rails_app/app/current: Is a directory
mv stderr: Nothing written

0 个答案:

没有答案