我第一次部署到新服务器似乎失败并显示以下错误消息:
failed: "sh -c 'cat /var/www/my_project/production/current/REVISION'" on 192.xxx.xxx.xxx
这不是我第一次部署 capistrano 并且不记得以前遇到过这样的事情......任何解决这个问题的指针都会非常感激。
这是部署日志中的更多内容
[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
成功运行
“您似乎已安装所有必要的依赖项”