rails server status:用于健康检查应用程序的Rails 4引擎
Rails服务器状态挂载一个Rack应用程序,它将作为ELB、Varnish等可以用来验证应用程序是否健康的健康检查安装将此行添加到应用程序的Gemfile中: gem 'rails_server_status'然后执行: $ bundle或者自己安装: $ gem install rails_server_status用法在config/routes.rb : mount RailsServerStatus::Engine => "/server-status" cURL挂载的端点: curl http://localhost:3000/server-status HTTP/1.1 200 OK up 48699 1.14 192.168.50.206作为JSON: curl -H "Accept: application/js