ruby-on-rails - 为什么 Apache 还没有可行的 mod_ruby?

标签 ruby-on-rails ruby apache

尽管 Ruby 和 Rails 很流行,但这个问题似乎早就解决了。 JRuby 和 mod_rails 都很好,很花哨,但为什么没有直接用于 Ruby 的 Apache mod?

最佳答案

Phusion Passenger ,一个强大的 Apache 模块,可以运行 Rack最低配置的应用程序。它对共享主机越来越有吸引力,将任何程序变成 Rack 应用程序都非常容易:

A Rack application is an Ruby object (not a class) that responds to call. It takes exactly one argument, the environment and returns an Array of exactly three values: The status, the headers, and the body.

关于ruby-on-rails - 为什么 Apache 还没有可行的 mod_ruby?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75001/

相关文章:

ruby-on-rails - 验证 has_and_belongs_to_many 的存在

rspec - 测试 before_filter 被调用

ruby-on-rails - Rails 中的 pg_dump 版本不匹配

ruby-on-rails - 使用 Rails 在 PaperClip 中文件上传 Base64 编码的字符串

ruby-on-rails - 将法拉第响应体解析为 Nokogiri 对象

ruby-on-rails - rails 从 Rack 渲染 html

ruby-on-rails - Mongrel::DirHandler 相当于 Passenger

php - 将图像重定向到php页面

java - 如何在 apache Camel (spring) 中测试路由

java - dateTextField 的初始值 (Apache Wicket)