mod-rails

Change the Passenger application pool size at runtime

Is it possible to change the Passenger application pool size at runtime? Ie, without restarting apache, and without disrupting active visitors? The same time every day we have a background job run. It is very memory intensive. Since during that time, traffic on the site tends to be relatively low, I would like to automatically scale dow...

Rails page caching with intra-page administration

I'd love to use page caching on a Rails site I run. The information on each page is mostly constant, but the queries that need to be run to collect the information are complicated and can be slow in some cases.The only obstacle to using page caching is that the administrative interface is built into the main site so that admin operations...

Archiving an Entire Rails Site

I have a Ruby on Rails site that was only needed for a short period of time during which users added various objects to a mySQL database, commenting on them, associating themselves with them, etc. etc. etc. The question is this: the site is no longer needed until a week next year around this time when I will clear the database and use ...

Rails Beta3 & PaperClip & Passenger Bundler::PathError

So I'm going around in circles with this - I'm using a fork of the Paperclip Rails gem to get it to work with Rails3. Works fine on my OSX box with Passenger. But on my server (CentOS 5) I get this this error: git://github.com/lmumar/paperclip.git (at rails3) is not checked out. Please runbundle install(Bundler::PathError)Blockquote I...

Not able to upload in a passenger app behing apache

Am not able to upload a 8.4 MB file, in a passenger app behind apache. Transferring the same file via scp took 4.1 minutes. Error backtrace: [ pid=10222 file=ext/apache2/Hooks.cpp:727 time=2010-05-18 07:13:14.842 ]: Unexpected error in mod_passenger: An error occurred while receiving HTTP upload data: Connection reset by peer (104) B...

Trying to run Rails App with Apache/Passenger, but getting 404s

Hi, I've installed passenger (don't know if the installation is correct) onto apache (i'm just using a development macintosh running snow leopard). the httpd.conf file has a VirtualHost setting like this <VirtualHost *:80> ServerName myapp DocumentRoot /webapps/boom/public <Directory /webapps/boom/public> Allow from all ...

Apache: mod_rails and mod_php - can I run both both at the same time?

My goal is to run multiple Ruby on Rails web apps and one PHP application on Apache2 from a single server. All of those virtual hosts will be Name-based and running on 80 port. Is it possible? How can I do that? Will it have any negative performance impact because of these mods_x cooperation. ...

How do I restart phusion passenger?

rails@george:/srv/fsg_distro$ sudo passenger-status *** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one... # mkdir -p /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-x86_64-linux # cd /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-x86_64-linux # /usr...