在我的rails(3.2.16v)部署與capistrano v3期間,我收到以下錯誤。沒有這樣的文件或目錄(公共/資產/清單*)
$帽開發部署--trace
DEBUG [014a40e4] Running /usr/bin/env [ -L /home/ec2-user/capistrano-3/my_app/releases/20140117124107/public/assets ] on 50.13.220.55
DEBUG [014a40e4] Command: [ -L /home/ec2-user/capistrano-3/my_app/releases/20140117124107/public/assets ]
DEBUG [014a40e4] Finished in 0.602 seconds with exit status 1 (failed).
DEBUG [9c5901ab] Running /usr/bin/env [ -d /home/ec2-user/capistrano-3/my_app/releases/20140117124107/public/assets ] on 50.13.220.55
DEBUG [9c5901ab] Command: [ -d /home/ec2-user/capistrano-3/my_app/releases/20140117124107/public/assets ]
DEBUG [9c5901ab] Finished in 0.639 seconds with exit status 1 (failed).
////這個錯誤是在跟蹤
**調用部署的末尾:資產:backup_manifest(FIRST_TIME)
** Execute deploy:assets:backup_manifest
DEBUG [a08f4c02] cp:
DEBUG [a08f4c02] cannot stat `/home/ec2-user/capistrano-3/my_app/releases/20140117064709/public/assets/manifest*'
DEBUG [a08f4c02] : No such file or directory
DEBUG [a08f4c02]
cap aborted!
cp stdout: Nothing written
cp stderr: Nothing written
Tasks: TOP => deploy:assets:backup_manifest
The deploy has failed with an error: #<SSHKit::Command::Failed: cp stdout: Nothing written
cp stderr: Nothing written
>
** Invoke deploy:failed (first_time)
** Execute deploy:failed
我的本地機器中沒有任何資產文件夾。有誰能夠幫助我??
東西已經在這裏問。希望它有幫助 http://stackoverflow.com/questions/17720253/rails-assets-missing-after-capistrano-deploy –
@MarkoJurinčič - 我認爲這是爲capistrano v2。我正在使用v3 – user3205523
找到另一個鏈接。它也適用於版本2.但也許它可以幫助你:http://robmclarty.com/blog/how-to-deploy-a-rails-4-app-with-git-and-capistrano –