0

我遇到了 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
4

1 回答 1

1

您的部署正试图杀死一个不存在的独角兽进程,因为/home/deployer/fashion/shared/pids/unicorn.pid.

rm /home/deployer/fashion/shared/pids/unicorn.pid

并重新部署,你应该都准备好了。

于 2013-08-06T18:01:21.843 回答