我正在尝试使用 capistrano 将新代码部署到 Amazon EC2 实例,突然,我收到了这个错误:
servers: ["IP"]
[IP] executing command
*** [err :: IP] cat:
*** [err :: IP] /home/deployer/fileto/current/tmp/pids/unicorn.pid
*** [err :: IP] : No such file or directory
*** [err :: IP]
*** [err :: IP] sh: 1: kill:
*** [err :: IP] Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
*** [err :: IP] kill -l [exitstatus]
*** [err :: IP]
command finished in 371ms
failed: "sh -c 'kill -s USR2 `cat /home/deployer/project_name/current/tmp/pids/unicorn.pid`'" on IP
两个小时前我成功部署了代码,但现在我尝试它时,收到此错误消息。
如果 2 小时前一切正常,实例和整个部署过程会发生什么情况?
编辑:当我跑步时
杀死 -s USR2cat /home/deployer/fileto/current/tmp/pids/unicorn.pid
我明白了
cat: /home/deployer/fileto/current/tmp/pids/unicorn.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]