Articles of ruby

如何在Windows XP上使用APACHE和MYSQLconfigurationRuby On Rails

我一直在努力让Ruby On Rails在我的系统上运行Windows XP操作系统。 我正在尝试将RORconfiguration为使用apache和mysql,这样我就不必安装额外的服务器来在rails上运行ruby。 我也试过InstantRails,但面临同样的问题。 我经历了在获得轨道上提到的教程在运行xampp的Windows计算机上运行 ,并执行所有必要的步骤。 一切正常(安装rails,从命令提示符下运行ruby,gem和rails命令),但是当我尝试通过键入localhost:3000 / say / hello来运行我的应用程序时,什么都没有发生,我被redirect到google页面以search这个关键词。 请帮帮我 谢谢

专用服务器configuration – 一些提示-Xenserver / Debian

我正在从基于vps的托pipe迁移到专用托pipe(8GB RAM / 1TB HD)。 我需要运行多个基于Drupal和Ruby的应用程序? 什么是推荐的configuration。 我想到了两个select。 1)在Xen上安装多个Debian OS(如VPS)。 每个可能是2GB的内存,并在不同的分区上运行Drupal和Ruby和MYSQL。 2)安装一个Debian实例。 并安装Drupal(Apache,PHP)Ruby(lighttpd,ruby),MySQL都在同一个分区 我有点担心选项2可能会导致一些性能问题。

最好的轻巧。 Ruby on Rails应用程序的multithreadingWindows Web服务器

我需要知道什么是最好的轻量级multithreading的Windows Web服务器,用于运行Ruby on Rails应用程序。 我使用薄的currenlty,但它不是multithreading(由devise)。 那么,在Windows上使用的是什么?

在安装了sqlite-devel库的AWS Linux实例上安装sqlite gem失败

我正在运行一个由ami-595a0a1c构build的实例。 我正在尝试安装sqlite3(或sqlite)gem,它的失败与下面的错误: $ sudo gem install sqlite3 Building native extensions. This could take a while… ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for sqlite3.h… no sqlite3.h is missing. Try 'port install sqlite3 +universal' or 'yum install sqlite3-devel' and check your shared library search path (你的sqlite3共享库所在的位置)。 extconf.rb失败***由于某种原因无法创buildMakefile,可能缺less必要的库和/或头文件。 检查mkmf.log文件以获取更多详细信息。 您可能需要configuration选项。 […]

Apache / Mongrel / Redmine安装问题(VirtualHost / ProxyPass)

我按照这个分步说明安装Redmine: http : //justnotes.co.cc/2010/02/11/how-to-install-redmine-on-ubuntu/ 我使用Ubuntu 10.04.1,Apache 2.2.14,Mongrel 1.1.5。 在VirtualHostconfiguration阶段,我使用这个: <VirtualHost *:80> ServerName myserver.lv ProxyPass /redmine/ http://localhost:8000/ ProxyPassReverse /redmine/ http://localhost:8000 ProxyPreserveHost on <Proxy *> Order allow,deny Allow from all </Proxy> </VirtualHost> 但是,当我将浏览器指向http://<my-server's-ip>/redmine/我看到的不是redmine web应用程序,而是“/ redmine的索引”,以及根目录中文件的索引Redmine的。 任何想法如何解决? PS试图删除VirtualHost的东西一起,而不是将以下简单的子句添加到apache2.conf: <Proxy *> Order allow,deny Allow from all </Proxy> ProxyPass /redmine/ http://localhost:8000/ ProxyPassReverse /redmine/ http://localhost:8000/ ProxyPreserveHost on 结果,行为改变了! 现在http://<my-server's-ip>/redmine/产生Redmine的起始页的源代码,所以它被提供服务,但显然没有渲染。 同时, http://<my-server's-ip>:8000/完全正常,所以Mongrel正在为Redmine应用程序提供服务,这只是在我的VirtualHost […]

在ubuntu 10.04 LTS上部署带有nginx和mongrel集群的Rails应用程序

我将mongrel集群和nginx模块安装到我的虚拟机上。 工作环境是 ruby 1.9.2 rails 3.0.6 rubygems 1.7.2 mongrel_cluster 1.0.5 mongrel 1.2 当我启动杂种群,它会抛出以下错误。 应用程序脱机请build议我一些解决scheme。 我已经尝试了很多使用Google的解决scheme,并没有解决这个问题。 任何forms的帮助表示赞赏。 *starting port 8011 NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::SourceIndex.from_installed_gems called from /usr/local/lib/ruby/gems/1.9.1/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:109 . NOTE: from_installed_gems(arg) is deprecated. From /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb:62:in `block (2 levels) in deprecate' NOTE: Gem::SourceIndex.from_gems_in is deprecated with […]

与乘客使用Rails时奇怪的错误

我得到以下乘客错误: undefined method `post_reset' for Gem:Module 有人知道这可能意味着什么? 谢谢!

为什么没有人似乎使用FreeBSD来托pipeRails应用程序?

我正在把这个线程先前的动作转移到了stackoverflow。 ( 原始主题 ) 我们为我们的生产服务器使用FreeBSD 8.2,Rails 3.0.7,postgresql 8.3,passenger和nginx。 ( 更多信息 ) 我们似乎有一个奇怪的configuration,因为似乎没有人像我们这样的东西。 我感觉有点孤单。 😉 尽pipe如此,这种configuration很容易设置,性能很好,而且非常稳定。 为什么Rails程序员似乎要避免将FreeBSD作为生产服务器?

目录不属于“mysql”或“_mysql”用户

我最近安装了一个Rails应用程序的MSQL。 经过一些修补之后,我有一个错误,启动mysql ,如下所示: Warning: The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' user.

我如何安装Rake(Ruby on Rails)?

我想安装Ruby on Rails(我正在运行FreeBSD,但不想使用RoR的Ports),所以这是一个更通用的unix / RoR问题。 简单地说,安装Rake的最好方法是什么。 http://rake.rubyforge.org/build议: % ruby install.rb 要么 gem install –remote rake 我已经安装了Ruby 1.9,并且它的lib的path是 /usr/local/lib/ruby/ 我不确定上述两个选项的最佳方式,还是有其他build议。 (本质上,FreeBSD仍然在Ruby 1.8上,所以我只想在一个自包含的安装中完成所有的RoR,而不是将Portsgem与其他不在Port中的gem混合在一起)。