- 博客(171)
- 收藏
- 关注
原创 11 Things to Consider Before Deploying Your Rails Application
from: [url]http://vinsol.com/blog[/url]At VinSol, we have been developing and deploying Rails applications for more than four years. During this period, we have identified some best practices that...
2010-05-09 07:49:30
242
原创 libxml2 is missing. try 'port install libxml2' or 'yum install libxml2-d
ubuntu下安装webrat, 出现以下错误[code="java"]Building native extensions. This could take a while...ERROR: Error installing webrat-0.5.3.gem: ERROR: Failed to build gem native extension./usr/bin/r...
2010-02-05 13:46:45
272
原创 libxslt is missing. try ‘port install libxslt’ or ‘yum install libxslt-devel’
sudo apt-get install libxslt1-dev libxml2-dev
2010-01-18 18:11:15
736
原创 rails deploy nginx mongrel
Ruby on rails推荐的生产运行环境是Linux/FreeBSD/Unix,即Unix系列的操作系统,采用nginx+mongrel的解决方案。在网上参考了N篇文章和经过2天的实验后,我终于搭建成功,非常感谢网上的高手们无私的奉献,当然,高手们毕竟是高手,有些东西还是讲的有些模糊,于是我自己做实验,借鉴高手的文章并整理出下面的这篇文章,希望对刚刚入门的朋友能够有所帮助。同时,恳请大家能够指...
2010-01-06 10:14:36
230
原创 浅析Ruby on Rails部署方案(三)
测试结果HAproxy和Lighttpd的测试需要调整很多参数,我们先看看无需调整参数的几种方案的测试结果,我同样除了原始数据的折线图,还会给出B样条的图以更清晰地看到结果:从图上我们看到Nginx+Mongrel的方式性能很稳定,但在并发量小于150的情况下与其他方案相比还是差很多的。Nginx+Thin/Evented Mongrel两种方式的性能则相差不大,毕竟都是使用的Ev...
2009-12-18 18:33:07
194
原创 浅析Ruby on Rails部署方案(二)
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/tewikico/public_html/blog/wp-content/plugins/wp-syntax/geshi/geshi.php on line 1827Warning: Invalid argu...
2009-12-18 18:32:14
257
原创 浅析Ruby on Rails部署方案(一)
前言2006初,我接到了公司分配的一个遗留项目,让我负责一个基于C/S的系统的服务器端。其实是系统是基于HTTP协议的,因为负责客户端的同事对于服务器端编程不甚了解,虽然使用PHP对熟悉C++的他来说是驾轻就熟,但是在进一步实现更多的功能和更高的性能上就捉襟见肘了。项目是在非常突然的情况下交给我的,因为该同事在客户端上有更多的事情要做。我在分析了他的数据库结构和PHP源代码之后,决定按照与客户...
2009-12-18 18:31:07
212
原创 Friends For Sale
官方命名: Friends For Sale! 中文译名: 好友买卖 朋友买卖 在朋友买卖插件出现的短短三个月时间内,朋友买卖成为facebook前十名的应用,它每秒钟处理200个请求,每月产生300 000 000个page view。在技术上,选择了Ruby on Rails框架,两个兼职程序员,一打服务器,和优秀的架构。 应用架构: ...
2009-12-18 18:16:11
205
NoMethodError (undefined method `file_exists?’ for #<ActionView::Base:
NoMethodError (undefined method `file_exists?’ for #):/usr/lib64/ruby/gems/1.8/gems/gettext-1.90.0/lib/gettext/rails.rb:280:in `render_file’/usr/lib64/ruby/gems/1.8/gems/gettext-1.90.0/lib/gettext...
2009-10-12 14:32:22
1273
Rails2.2以上Mysql安装问题
Rails2.2以上版本安装Mysqlsudo gem install mysql报如下错误:[code="java"]Building native extensions. This could take a while...ERROR: Error installing mysql: ERROR: Failed to build gem native extension...
2009-09-01 07:57:48
117
ERROR: Failed to build gem native extension.
ubuntu下安装mechanize:sudo gem install mechanize报如下错误:[code="java"]Building native extensions. This could take a while...ERROR: Error installing mechanize: ERROR: Failed to build gem native...
2009-09-01 06:42:45
330
in `require_frameworks': no such file to load -- openssl
[code="java"]/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:259:in `require_frameworks': no such file to load -- openssl (RuntimeError)[/code]安装如下包就可以了:[code="java"]apt-get install...
2009-08-22 14:09:53
207
看看你有没有充分利用Rake命令
在你的Rails根目录下运行:[code="java"]rake --task[/code]看看以下的命令用过多少,我用的不是很多,看来还没有充分利用Rake命令来提升开发效率。[code="java"](in /home/shetty/Documents/ework/test)rake db:abort_if_pending_migrations # Raises...
2009-08-15 18:09:32
146
原创 Manually Install Thunderbird 2 : Ubuntu 9.04
[code="java"] 1. Download Thunderbird 2. (Save to disk) 2. sudo tar -C /opt -zxvf ~/Desktop/thunderbird-* 3. sudo ln -s /opt/thunderbird/thunderbird /usr/local/bin/thunderbird 4. creat...
2009-08-15 16:12:38
168
The entity name must immediately follow the '&' in the entity ref erence
在mxml文件中,使用&符号报错:[code="xml"]mysharebook.cn && 4star.cn ? pass : fail[/code]改为如下代码就好了:[code="xml"]mysharebook.cn && 4star.cn ? pass : fail[/code]...
2009-08-14 10:11:48
257
undefined method `configuration' for Rails:Module (NoMethodError)
使用cucumber包如下错误:[code="java"]undefined method `configuration' for Rails:Module (NoMethodError)C:/software/InstantRails-2/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/rails/wor...
2009-07-20 18:04:57
586
Argument count mismatch on mx.core::CrossDomainRSLItem(). Expected 5, got 6.
某次开发中用了RSL,包如下错误:[code="ruby"]ArgumentError: Error #1063: Argument count mismatch on mx.core::CrossDomainRSLItem(). Expected 5, got 6.[/code]原因如下:如果用了Runtime shared library(RSL)的话,会出现这种问题。改为...
2009-07-20 18:02:48
263
原创 在 Linux 上构建 Web spider
介绍了linux上的spider , 用ruby , python编写。[url]http://www.ibm.com/developerworks/cn/linux/l-spider/[/url]
2009-07-19 22:04:17
107
no such file to load -- nokogiri (LoadError)
[code="ruby"] require 'nokogiri' require 'open-uri' # Get a Nokogiri::HTML:Document for the page we’re interested in... doc = Nokogiri::HTML(open('http://www.google.com/search?q=tender...
2009-07-19 21:56:00
381
利用Mongrel cluster和Apache搭建Rails服务器
Set mongrel cluster and apache for myShareBook.cn[code="java"]1. Insall mongrel2. Install apache3. Create file in apache_root/myConf/my_share_book.conf4. Config apache_conf[/code]5. ...
2009-07-16 22:08:59
159
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人