0

我第一次部署到新服务器似乎失败并显示以下错误消息:

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成功运行

“您似乎已安装所有必要的依赖项”

4

2 回答 2

1

遇到了这里发布的问题:

https://github.com/capistrano/capistrano/issues/224

capistrano 错误:...../当前:没有这样的文件或目录

不得不评论deploy/assets第一次部署的行。

于 2013-09-09T16:00:22.817 回答
0

How are you trying to deploy? First deployment to servers should be done with deploy:cold

cap deploy:cold
于 2013-09-09T15:28:23.807 回答