尽管 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/