mongrel

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

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 shotgu...

Ruby ActiveRecord + Mongrel going slow

I have a class like this: class Router :: Mongrel::HttpHandler def process(req, res) status, header, body = [200, {"Content-type"=>"text/html"}, Model.all.to_xml] res.start(status) do |head, out| header.each_pair { |key, value| head[key] = value } out.write body end end end It's an server and I use...

Mongrel 1.0.1 compatible with Linux 5.3 version?

Mongrel 1.0.1 compatible with Red Hat Linux 5.3 version? I would like to know Mongrel 1.0.1 compatibility in Red Hat Linux5.3. ...

Problems running Ruby on Rails apps on shared hosted server

I have problems installing any Ruby On Rails app on my shared hosted server. Mongrel shows html as plain text for all pages. The problem occurs for any app, even if I create a test empty app and add a scaffolded view without changing anything. It appears that the Mongrel crashes when trying to put cookies to the response header. The HTT...

Custom rails route problem with 2.3.8 and Mongrel

I have a controller called 'exposures' which I created automatically with the script/generate scaffold call. The scaffold pages work fine. I created a custom action called 'test' in the exposures controller. When I try to call the page (http://127.0.0.1:3000/exposures/test/1) I get a blank, white screen with no text at all in the sour...

How to balance load in a Apache + Mongrel application

I was wondering if someone can explain how can a rails application be balanced. Two questions: Does it even help having separate rails applications reading from the same database in the same dedicated server? I understand Apache can balance load installing some extra modules? am i right? how can we accomplish this? (please provide exp...

Rails: losing quotes in post parameters

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 analy...

Sinatra, progress bar in upload form

Hi! I'm developing a Sinatra app that consists of an upload form, with a progress bar indicating how much of the upload has completed. The process, as described by ryan dahl, is the following: HTTP upload progress bars are rather obfuscated- they typically involve a process running on the server keeping track of the size of the te...

Streaming Response in Rails / Mongrel

I'm trying to send a streaming response in a Rails application, specifically using the multipart/x-mixed-replace content type. As far as I can tell, streaming responses are not supported by Rails since the container tries to buffer and determine the length of the response body before sending anything to the client. Incidentally, we are...

Getting low rails mongrel requests per second (8-15 per second)

So I have tried this out on multiple computers with multiple setups (servers/apps) and I seem to consistently get Rails completing 8-15 requests per second even for doing selects on empty tables with 1 field. I think I'm doing something wrong here because I've read a lot of stats online where people are getting 60-200 with mongrel. So be...

Mongrel not detecting changes in Rails classes?

I have a Rails app installed on a Slicehost server running Apache 2 and Ubuntu LTC 10.04. Things have worked beautifully up until now: I edit a file, do a quick mongrel_rails cluster::restart, and the changes are reflected in production. However, suddenly this process has broken down. For example, I have a class called Master located i...

What's the difference between Apache and say, Mongrel/other webserver that's not ISS?

Is it that much faster? (And if so, is that just because it's written in C, or due to some other optimizations?) Ability to eventually do load balancing? Having lots of mod_anything you could possibly want here? EDIT: I guess my real question is, what exactly does Apache do differently that makes it so widespread/well used? ...

Weird problem with Rails app and Mongrel

I originally posted a question relating to this problem on serverfault.com: http://serverfault.com/questions/152587/apache-mod-proxy-to-another-server I have since realized that this is not an issue with my server setup, but my rails application. I have set this application up server-wise the exact same as another functioning rails app ...

Could not find activerecord-jdbcmysql-adapter (existing is for Java)

I've been struggling with this problem for a few hours and it is preventing me from even starting my server, which therefore is stopping development completely. I am running Windows, Bitnami Rubystack, and that's pretty much it. I downloaded and installed NetBeans yesterday but my primary editor is Notepad++. I am not using JRuby. Here...

Quick AJAX responses from Rails application

I have a need to send alerts to a web-based monitoring system written in RoR. The brute force solution is to frequently poll a lightweight controller with javascript. Naturally, the downside is that in order to get a tight response time on the alerts, I'd have to poll very frequently (every 5 seconds). One idea I had was to have the A...

Rails duplicating requests

After correcting some other bugs on the application I found out that one page is being rendered twice on every request. Rails completes the request normally and after a few, simply starts another request. At first thought it was a Firebug problem or YSlow doing other requests, but after more tests the duplication remained and I discard...

Accessing Mongrel on Ubuntu within a Windows VM

Hej, i'm developing on an Ubuntu 10.04 Version. I'm using Mongrel 1.1.5. To test crossbrowser compability i want to access my local server directly out of a VM (Virtual Box OSE) runnning Windows XP Prof. Network connection is established, a ping from Windows to ubuntu shows that the connection is established, but when i try to access ...

Mongrel problem : same url, different responses

Hello guys ! I am coding a little app in order to learn ruby and web development in general. The app is a little blog and the web server is mongrel. I have set up a simple MVC structure on top of mongrel, with a front controller and a url dispatcher. When I go to the url http://myapp/article/show/hello for the first time, the content of ...

HTML5 Video Duration NaN from Mongrel server but correct time from direct file access.

Accessing following html directly from file system gives me the correct duration. <video src="multimedia/bbb400p.ogv" id="v"></video> <button onclick="alert(document.getElementById('v').duration); document.getElementById('v').play()">Play</button> However, accessing it through mongrel web server (on my machine and th...

Ruby on Rails Mongrel error

When I click on the "about your application's environment" button on the "welcome" your riding rails page this happens in my server console. ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. INT => stop (no restart)...