我的應用程序的公共(公共/資產)目錄中沒有任何資產文件夾。當我試圖部署與capistrano v3。我的遠程機器中創建了一個名爲public/assets的新文件夾。我也遇到以下錯誤,因爲它在public/assets(public/assets/manifest *)下搜索名爲manifest.yml的文件。有必要嗎??這樣做的目的是什麼???資產文件夾在部署capistrano時自動在公共場所創建3
//getting the following error while deploying
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)
**執行部署:資產: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
@ GhostRider-你的內容非常有用。謝謝。當我運行rake資產時:預編譯清單文件夾被生成。但是,當我運行cap開發部署 - 跟蹤我再次得到相同的錯誤。更新了我的問題中的錯誤。我正在從當地環境部署到ec2開發環境。 – Sam