【问题标题】:Restarting Puma in Ubuntu在 Ubuntu 中重启 Puma
【发布时间】:2015-05-14 15:45:07
【问题描述】:

为什么我必须在 Ubuntu 中重新启动 Puma 两次才能正常工作?

# uname -a
Linux myapp 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

# pumactl -v
2.6.0

# pumactl -S /home/myapp/tmp/puma.state restart --config /home/myapp/config/puma.rb
Command restart sent success

[...that's not working, Puma is still running...]

# pumactl -S /home/myapp/tmp/puma.state restart --config /home/myapp/config/puma.rb
[9703] Puma starting in cluster mode...
[9703] * Version 2.6.0, codename: Pantsuit Party
[9703] * Min threads: 0, max threads: 16
[9703] * Environment: production
[9703] * Process workers: 2
[9703] * Phased restart available
[9703] * Listening on unix:///home/myapp/tmp/puma.sock
[9703] * Daemonizing...

[...ok now it worked...]

【问题讨论】:

标签: ruby-on-rails ubuntu puma


【解决方案1】:

我不会相信这个 pumactl 脚本。只需按照 puma 文档本身的建议使用kill -SIGUSR2 <pid>https://github.com/puma/puma

【讨论】:

  • 是的。知道如何将它与 capistrano 一起使用吗?
猜你喜欢
  • 2018-05-06
  • 2016-02-18
  • 1970-01-01
  • 2015-06-15
  • 2013-11-26
  • 1970-01-01
  • 2016-09-06
  • 2021-12-18
  • 2016-07-19
相关资源
最近更新 更多