mongrel

Rails HTTP Status always returns 200 in development

I'm using Mongrel in development mode for my rails app. I noticed that regardless of the what the actual HTTP status should be, it is being returned as 200 to the browser. In production mode, the status is correct. For example, when the record it is not found, the app displays the correct (not found) view, but the status sent to the br...

How to run rails website permanently on Mac OS X

Hello guys, i've developed small web app for personal use with Ruby on Rails. Now when i want to use it I open Terminal and run ruby script/server to run mongrel then i go to Safari and type localhost:3000 to see my app. I'd like to have this site start automatically on startup of mac and possibly to use some other URL.. preferably just...

Running Sinatra app with Mongrel on Windows

I'd like to start a Sinatra app from Mongrel on Windows, rather than Sinatra starting Mongrel in the background. Is there a simple way to use Mongrel for Sinatra? It's looking for a rails app by default. Edit: Suggested solution is to simply run a VMWare or SunBox with real Linux and deal with the corporate issues that way. ...

How to implement a progress bar in Ruby?

We want to implement a progress bar for file uploading in one of our Ruby application. This needs to show the exact percentage of the upload. However, despite our best efforts we could not find a way to implement a progress bar that exactly replicate the file upload process. Can you please help us with this? ...

Rails not refreshing code

While developing a Rails app, I usually leave the dev server running locally (mongrel) as I work on the code. Changes in the code take affect after a quick refresh. EXCEPT changes havent been taking effect for a class I've been writing in the Lib in folder. Is this in any way a known problem? What could be causing this? It is very frustr...

Can't get value params[:user] first request using mongrel_rails start?

I get nil from params[:user] in create action of my controller for the first request when I start my mongrel server by using mongrel_rails start. After that for second and third time are ok. In addition, if I start my Mongrel by using script/server, it doesn't have any problems at all. It is different by starting mongrel server between s...

Starting and Stopping Another Process when Mongrel Rails starts

I would like to start another process when mongrel rails starts up. Is there a way to do this? I am looking to start lighttpd which acts as a media server on my project every time rails starts and stop it every time rails stops. ...

Installing rails w/ mongrel cluster on Media Temple DV Server

First, I'm a complete newb to rails - I've been trying to get my feet wet, but ran into some trouble here. I've followed http://kb.mediatemple.net/questions/279/Ruby+on+Rails+using+Mongrel+Clusters to install rails, everything worked except one of the last steps: "cp /var/www/vhosts/testapp.mt-example.com/rails/testapp/public/.htaccess...

How to ensure SWF is cached by the browser the first time it is downloaded when serving via HTTP and Mongrel cluster?

We have a Rails app that instantiates a SWF object 16 times (it has to do this, it's just the nature of the application). Instead of being downloaded once, it is being downloaded 16 times. How can we ensure this SWF is cached by the browser the first time it is downloaded? It's being served directly from Apache - can we modify the HTTP...

Ruby on Rails getting HTTP 500 with no error logged (hosted on Media Temple)

Hi, I am trying to deploy my Ruby on Rails application on Media Temple. The application starts fine (Mongrel starts up fine) but I keep on getting a HTTP 500 error. The problem is that nothing gets written to the log, so I do now know what might be causing this problem. I have 256M of memory available so I do not believe memory is a...

Should I user Apache or Nginx & Passenger or Mongrel for my Rails application

Hello, I have a Ruby on Rails application that will be a CMS in way which means it's mostly DB intensive. I expect it to have decent amount of traffic so before designing I'm choosing what servers to use. Most important for me is performance. I heard good things about Nginx and many developers in the Rails community recommends it my on...

Cannot start Mongrel Server

Hi everyone, I can't start mongrel server. When I have a look at log file, it tells me that the address that I wanted to use is not available. I tried to check if there were some services using that address, but I could not find any. The error message in log file: `initialize_without_backlog': Cannot assign requested address - bind(2)...

apache2.2 x mongrel proxy error

I user apache2.2 mod_proxy_balancer + mongrel + rails2.3 Following error is occured. "proxy: Error reading from remote server returned by" I set this my httpd.conf SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 What's wrong? ...

Does Mongrel do IPv6 well?

I'm using mongrel + apache 2.2 + mod_proxy_balancer. apache2.2 is IPv6 well http://httpd.apache.org/docs/2.2/en/bind.html#ipv6 Does Mongrel do IPv6 well? Platform:RHEL ruby:1.8.6 ...

When to use Mongrel as web server for Rails application?

When I started my first bigger Rails application, I chose to use Apache (with Passenger), because I already had some experience with it with PHP, but I don't have any deep knowledge of deploying Rails applications. How would one choose web server for a Rails app? Are there any main differences between Apache and Mongrel? Or is it just ...

Ruby on Rails Application and Mongrel Failing to Start

Hi Group, I have a Ruby on Rails (Rails v2.0.2) application which I have developed using Netbeans 6.1 on Mac OS X. When I tried to run this application this evening (it was working fine this morning) I get the error: 'could not connect to the web server - cannot show http://localhost:3000' When I try to run the application from termi...

capistrano not restarting, stopping but update is working

I recently changed machines, and had a few rough spots updating Rails. The server itself stayed as it was. Everything seemed to be fine, but not capistrano. When I make changes and update SVN, running cap deploy the correct new version of the repository is placed on the server. The logging in the terminal running capistrano shows not...

Sending USR2 to mongrel_rails sometimes results in an "Address already in use" on the restart

We have a rolling-restart mode for our mongrel cluster that sends a USR2 signal to each running process. This works great, most of the time. But very occasionally the mongrel process will shutdown, and then fail to restart, with the following error: /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/tcphack.rb:12:in `...

Does Rails 2.0 do IPv6 well?

I'm using mongrel + apache 2.2 + mod_proxy_balancer. apache2.2 is IPv6 well http://httpd.apache.org/docs/2.2/en/bind.html#ipv6 Does Mongrel do IPv6 well? Platform:RHEL ruby:1.8.6 /actionpack-2.0.5/lib/action_controller/request.rb which is worried about the particularly . ...

How do I pass the HTTP username from Apache to Mongrel/Rails?

The goal: running a Rails application on Mongrels, allowing access through Apache after doing basic HTTP Authentication The problem: reading the supplied username from within Rails Apache: <Proxy balancer://mongrel_cluster> BalancerMember http://127.0.0.1:4001 # ... Order deny,allow Deny from all AuthType Basic AuthName "<real...