我遇到了capistrano部署问题。 我使用RVM,Rails 3.2.13,Ruby 1.9.3,Nginx,Unicorn。 服务器上的CentOS 6.4和本地计算机上的Mac OSX。
command finished in 482ms
** transaction: commit
* 2013-08-01 22:11:25 executing `deploy:restart'
* executing "if [ -f /home/deployer/fashion/shared/pids/unicorn.pid ]; then kill -USR2 `cat /home/deployer/fashion/shared/pids/unicorn.pid`; else cd /home/deployer/fashion/current && bundle exec unicorn -c /home/deployer/fashion/current/config/unicorn.rb -E production -D; fi"
servers: ["91.211.216.150"]
[91.211.216.150] executing command
** [out :: 91.211.216.150] bash: line 0: kill: (65424) - No such process
command finished in 477ms
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'ruby-1.9.3-p448@fashion' -c 'if [ -f /home/deployer/fashion/shared/pids/unicorn.pid ]; then kill -USR2 `cat /home/deployer/fashion/shared/pids/unicorn.pid`; else cd /home/deployer/fashion/current && bundle exec unicorn -c /home/deployer/fashion/current/config/unicorn.rb -E production -D; fi'" on 91.211.216.150
答案 0 :(得分:1)
由于/home/deployer/fashion/shared/pids/unicorn.pid
上的过时pidfile,您的部署正试图杀死不存在的独角兽进程。
rm /home/deployer/fashion/shared/pids/unicorn.pid
并重新部署,你应该全部设置。