2013-08-01 100 views
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 '[email protected]' -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

刪除'/home/deployer/fashion/shared/pids/unicorn.pid'然後重試? –

回答

1

您的部署正試圖殺死獨角獸的過程,根本不存在/home/deployer/fashion/shared/pids/unicorn.pid因爲過時的了pidfile,。

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

並重新部署,您應該全部設置。