我第一次部署到新服务器似乎失败,并显示以下错误消息:
failed: "sh -c 'cat /var/www/my_project/production/current/REVISION'" on 192.xxx.xxx.xxx
这不是我第一次部署卡皮斯特拉诺,也不记得以前遇到过这样的事情......任何解决此问题的指示,他将不胜感激。
以下是部署日志中的更多信息
[192.xxx.xxx.xxx] executing command
command finished in 1202ms
triggering after callbacks for `deploy:finalize_update'
* 2013-09-09 18:54:37 executing `postgresql:symlink'
* executing "ln -nfs /var/www/my_application/production/shared/config/database.yml /var/www/my_application/production/releases/20130909132425/config/database.yml"
servers: ["192.xxx.xxx.xxx"]
[192.xxx.xxx.xxx] executing command
command finished in 1042ms
triggering after callbacks for `deploy:update_code'
* 2013-09-09 18:54:38 executing `deploy:assets:precompile'
* executing "cat /var/www/my_application/production/current/REVISION"
servers: ["192.xxx.xxx.xxx"]
[192.xxx.xxx.xxx] executing command
command finished in 1039ms
*** [deploy:update_code] rolling back
* executing "rm -rf /var/www/my_application/production/releases/20130909132425; true"
servers: ["192.xxx.xxx.xxx"]
[192.xxx.xxx.xxx] executing command
command finished in 1103ms
failed: "sh -c 'cat /var/www/my_application/production/current/REVISION'" on 192.xxx.xxx.xxx
cap deploy:check
已成功运行
"您似乎已安装所有必要的依赖项"
遇到了这里发布的问题:
https://github.com/capistrano/capistrano/issues/224 和
capistrano 错误: ...../当前: 没有这样的文件或目录
必须注释第一次部署的deploy/assets
行。
您正在尝试如何部署?首次部署到服务器应使用 deploy:cold 完成
cap deploy:cold