Apr
25

chinaonrails.com上看到 bd7lx 发布的 简化部署插件 乘客搭上阿帕奇Phusion Passenger (a.k.a. mod_rails for Apache), 对其部署的简单和性能都欣喜不已,但官方的文章不一定真实可靠,特自行测试一番,Let’s go.

测试环境如下:



Linux p1 2.6.24-1-amd64 #1 SMP Mon Feb 11 13:47:43 UTC 2008 x86_64 GNU/Linux

按官方的安装步骤进行,这里有一视频

apt-get install apache2

apt-get install apache2-prefork-dev

apt-get install libapr1-dev

apt-get install apache2-mpm-prefork

gem install passenger

passenger-install-apache2-module

我的 httpd.conf 文件

LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-1.0.1/ext/apache2/mod_passenger.so
RailsSpawnServer /var/lib/gems/1.8/gems/passenger-1.0.1/bin/passenger-spawn-server
RailsRuby /usr/bin/ruby1.8

<VirtualHost *:80>
ServerName dailybuild.p1.cn
DocumentRoot /home/yay/delta/project1/current/public

<Directory “/home/yay/delta/project1/current/public”>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

问题:

  1. mod_rails 还不支持所有的plugin , 如: file_column.
  2. 对 public/ 目录下的静态文件,需要多一点配制,不要把思维停止在好看的视频上。
  3. 要用于 production 环境,需要做更多的测试,如: httperf。更多测试数据稍后分享。
Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Tags:

No Responses

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>