本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告
 本博客在此声明所有文章均为转摘,只做资料收集使用。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:
日志总数:1304
评论数量:2242
留言数量:5
访问次数:7594413
建立时间:2006年5月29日




[Ruby on Rails]一个production模式下的Ror环境搭建
软件技术

lhwork 发表于 2007/1/20 11:10:33

比较了一些ROR的生产环境,经过测试,还是选用了mongrel+apache的方式。 1.download安装包: httpd-2.2.3.tar.gz ,apache服务器 ruby-1.8.5.tar.gz rubygems-0.9.0.tgz mongrel-0.3.13.4.gem 2.安装ruby tar zxvf ruby-1.8.5.tar.gz ./configure make make install 3.安装rubygems tar zxfv rubygems-0.9.0.tgz cd rubygems-0.9.0 ruby setup.rb # gem update - system 4.安装rails gem install rails --include-dependencies 5.安装mongrel #gem install daemons #gem install gem_plugin 如果提示需要则安装 gem install mongrel 6.安装apache tar zxvf httpd-2.2.3.tar.gz ./configure --prefix=/usr/local/apache make make install 7.启动mongrel cd myrailsapp #启动 mongrel_rails start -d -p 8000 -e production -P ./log/mongrel-1.pid #停止 mongrel_rails stop -P ./log/mongrel-1.pid 8.编辑httpd.conf 代码<VirtualHost *:80>     ServerName myapp.com     ServerAlias www.myapp.com       ProxyPass / http://www.myapp.com:8000/     ProxyPassReverse / http://www.myapp.com:8000     ProxyPreserveHost on       ProxyPass /images !      ProxyPass /stylesheets !      Alias /images /path/to/public/images     Alias /stylesheets /path/to/public/stylesheets      #continue with aliases for static content     </VirtualHost>   改天把测试数据整理出来,包括cluster应用!


阅读全文(2172) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.300 second(s), page refreshed 144775914 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号