Puma - Rails on linux // Restart when process dies

戏子无情 提交于 2019-12-05 22:34:56

You can use puma control to start/stop puma server. If you know where puma.pid file placed (for Mac it's usually "#{Dir.pwd}/tmp/pids/puma.pid") you could do:

bundle exec pumactl -P path/puma.pid stop

To set pid file path or to other options (like daemonizing) you could create puma config. You can found an example here. And then start and stop server just with config file:

bundle exec pumactl -F config/puma.rb start

You can also restart and check status in this way:

bundle exec pumactl -F config/puma.rb restart
bundle exec pumactl -F config/puma.rb status
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!