杂种在与rails3的窗户上 [英] Mongrel on windows with rails3
问题描述
我正在Windows机器上部署Rails 3应用程序,并且希望在杂种上运行该应用程序.我已经手动安装了mongrel(不是通过捆绑器安装).我没有通过捆绑器安装它,因为当我尝试它时,它会出错
I am deploying a rails 3 application on a windows machine and I wan to run the app on mongrel. I have installed mongrel manually (not through bundler). I didn't installed it through bundler because when I tried it, it errors
获取rubygems.org的源索引
Fetching source index for rubygems.org
无法到达rubygems存储库
Could not reach rubygems repository
http://rubygems.org 找不到杂种< = 0,在任何以下版本中都可以运行来源
http://rubygems.org Could not find gem mongrel <>=0, runtime in any of the source
所以我下载了.gem并安装了.
So I downloaded .gem and installed.
但是捆绑程序仍然希望从存储库中获取它. 另外,当我尝试使用"rails server mongrel"启动服务器时,它说
But bundler still looks to fetch it from the repository. Also, when I try to start server using "rails server mongrel" it says
没有要加载的文件-杂种
no such file to load - mongrel
推荐答案
我有一个类似的设置现在对我有效.详细信息如下:
I have a similar setup that works now for me. Here are the details:
- 我安装了Ruby 1.9.2(红宝石1.9.2p0(2010-08-18)[i386-mingw32])
- 我通过Gem安装了Mongrel(mongrel(1.2.0.pre2 x86-mingw32).这里需要使用1.2.0.pre2版本,因为1.1.x版本不适用于Rails3.
- 我在Rails应用程序的
Gemfile
中添加了gem 'mongrel', '1.2.0.pre2'
行.
- I installed Ruby 1.9.2 (ruby 1.9.2p0 (2010-08-18) [i386-mingw32])
- I installed Mongrel through Gem (mongrel (1.2.0.pre2 x86-mingw32). It is necessary to take here the version 1.2.0.pre2, because the 1.1.x versions don't work with Rails 3.
- I added the line
gem 'mongrel', '1.2.0.pre2'
to theGemfile
in my Rails application.
我用rails s
启动服务器,它将Mongrel作为默认值.参见类似的问题 LoadError与Rails3和Ruby 1.9一起运行Mongrel .2
I start the server with rails s
, and it takes Mongrel as a default. See the similar question LoadError running Mongrel with Rails3 and Ruby 1.9.2
希望同样的设置同样适用.
Hope the same setup works for you as well.
这篇关于杂种在与rails3的窗户上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!