mongrel

For Ruby on Rails, when using Webrick, does it support concurrent requests and Keep-Alive, and why was loading .js and .png files so slow?

为君一笑 提交于 2019-12-09 22:35:17
问题 I am running Rails 3.0.5, and a page is reported on the console that it take 60ms, but if I check the Firefox Net load time chart, it takes 2.9 seconds. If I run the ab command on Bash, it says it take 300ms. So if remove the stand javascripts (6 of them), then it takes 1.9 seconds... but I wonder why so slow? Isn't keep-alive honored? Also strange is Firefox shows that 4 files are downloading concurrently -- I thought Webrick supports only 1 connection as a time? (Will changing to using

what happened to mongrel? any alternatives on windows?

橙三吉。 提交于 2019-12-09 17:10:12
问题 I've jus saw that mongrel's last updat was about one year ago... http://mongrel.rubyforge.org/wiki/WikiStart?action=diff&version=35 has it been disontinued? is there any other lightweight alternative for a windows development box? 回答1: Since mongrel hasnt been updated in such a long time there are certain features like --prefix which no longer work with the most reason version of rails (2.3+) I would recommend using thin server instead as it seems to be the natural evolution of mongrel and

Errors with shotgun gem and msvcrt-ruby18.dll when running my Sinatra app

不问归期 提交于 2019-12-08 07:12:58
问题 Greetings, Every time I make a change to a Sinatra app I'm working on and try to refresh the browser (located at http://localhost:4567/) the browser will refresh and, the console window seems to restart the WEB brick server. The problem is that the content in the browser window does not change. A friend of mine told me it was a shotgun issue and referred me to rtomayko's shotgun gem: http://github.com/rtomayko/shotgun On this page I read that the shotgun gem would basically solve my problem,

Rails: losing quotes in post parameters

一笑奈何 提交于 2019-12-07 15:55:39
问题 I'm adding full-text search to my Rails site and allowing users to enter double quotes in the search input box. The problem is that the double quotes seem to get filtered out by Mongrel and so I never receive those quotes in the values of the params hash. How do I prevent this from happening? I'm running Rails 2.3.8. [Edit: added analysis data] In Firebug I see the post parameter being posted correctly with quotes: search_criteria "great post" In the development log, however, the quotes are

Errors with shotgun gem and msvcrt-ruby18.dll when running my Sinatra app

↘锁芯ラ 提交于 2019-12-06 15:41:04
Greetings, Every time I make a change to a Sinatra app I'm working on and try to refresh the browser (located at http://localhost:4567/ ) the browser will refresh and, the console window seems to restart the WEB brick server. The problem is that the content in the browser window does not change. A friend of mine told me it was a shotgun issue and referred me to rtomayko's shotgun gem: http://github.com/rtomayko/shotgun On this page I read that the shotgun gem would basically solve my problem, allowing the changes made to my app to show up in the browser window after I refresh it. So I

Does/can Passenger use clusters like Mongrel?

£可爱£侵袭症+ 提交于 2019-12-06 08:02:54
问题 I'm just curious if Passenger does or can utilize clusters like Mongrel can. If so, how can I specifically run Passenger with clusters? I'm using nginx. And if not, how does it outperform Mongrel so well? 回答1: Mongrel Cluster just runs a specified number of Mongrel processes and assigns incoming HTTP requests to them using Apache's mod_proxy_balancer module which acts as a reverse proxy and performs load balancing. Passenger spawns worker (Ruby) processes to handle HTTP requests using one of

How to view debug code in Thin console window?

倖福魔咒の 提交于 2019-12-06 07:19:57
问题 In Mongrel, we are able to see any ruby debug code. After installing thin and doing thin start . I don't see any debug code on the console window. Is this nromal? Are we supposed to use tail -f log/development.log in a new console window to view the debug code? 回答1: Yes. The solution with tail is normal, and you should use it. 回答2: You could also try to start your server this way : rails server thin It shows your log, in Rails 3 at least. 回答3: You can use a Procfile with foreman: Procfile web

Error calling Dispatcher.dispatch #<NameError: uninitialized constant ActionController::CgiRequest

故事扮演 提交于 2019-12-06 02:35:25
I'm getting the following error on log/mongrel.6001.log I'm using mongrel_cluster , rails 3 and ruby 1.8.7 I start mongrel_cluster using mongrel_rails cluster::start But when I try to access the page on browser I get the error bellow "Error calling Dispatcher.dispatch # Mon Oct 11 00:26:04 -0500 2010: Error calling Dispatcher.dispatch #<NameError: uninitialized constant ActionController::CgiRequest> /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize' /usr/lib/ruby/gems/1

Rails: losing quotes in post parameters

萝らか妹 提交于 2019-12-05 21:43:39
I'm adding full-text search to my Rails site and allowing users to enter double quotes in the search input box. The problem is that the double quotes seem to get filtered out by Mongrel and so I never receive those quotes in the values of the params hash. How do I prevent this from happening? I'm running Rails 2.3.8. [Edit: added analysis data] In Firebug I see the post parameter being posted correctly with quotes: search_criteria "great post" In the development log, however, the quotes are gone: Processing PostsController#search (for 127.0.0.1 at 2010-06-18 17:28:45) [POST] Parameters: {

How to create a windows service with Rails 3 and Ruby 1.9.2?

眉间皱痕 提交于 2019-12-05 08:53:30
How to create a windows service with Rails 3 and Ruby 1.9.2 using Mongrel? A few years ago mongrel_service extension to Mongrel used to provide functionality to run a Rails application (using mongrel_service) as a service. Due some changes in Rails 3 and the lack of continious development in Mongrel, there has been no update of mongrel internals to handle the newer version of Rails properly Because of that, mongrel_service can't be used to run a Rails 3 application with Mongrel as a service. However, as author of the original mongrel_service, I'm close to release an updated library that will