【问题标题】:Trouble with deploy部署问题
【发布时间】:2013-08-01 18:17:22
【问题描述】:

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

【问题讨论】:

  • 删除 '/home/deployer/fashion/shared/pids/unicorn.pid' 并重试?

标签: ruby-on-rails ruby deployment capistrano unicorn


【解决方案1】:

由于/home/deployer/fashion/shared/pids/unicorn.pid 的 pidfile 过时,您的部署正试图杀死一个不存在的独角兽进程。

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

然后重新部署,你应该已经准备好了。

【讨论】:

    猜你喜欢
    • 2021-11-17
    • 2020-06-23
    • 2014-07-07
    • 2014-11-07
    • 2011-11-25
    • 2014-05-30
    • 2021-10-09
    相关资源
    最近更新 更多