当部署进入“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