passenger

Virtualhostname is not prepended to routes with Passenger 2.2.2 and Rails 2.3

Before the switch and in all apps on this passenger that run rails 2.0 my routes would yield "myapp/controller/action" Now they yield "controller/action". Interestingly the stylesheet_link_tags do work as normal. I prepend a prefix in the production environment to deal with this but it is a hideous hack of course. Any help is appreci...

Why does my Rails website timeout on Windows XP?

Hi All, YayMyLife.com is my first Rails site. I am using Apache/2.2.8 (Ubuntu) Phusion_Passenger/2.2.2 . The site works fine on Linux/Mac/Phones. However, it does not load on any browser on XP. This behavior is also found on other XP machines. The browser seems to wait for more content and it times out. I have checked headers with Liv...

How to remove "X-Runtime" header from Nginx/Passenger?

EDIT -- the solution I posted below probably applies to any server (Nginx/Apache/anything else), because this header is set in Rails itself. Anyone know where the "X-Runtime" header can be removed in Nginx & Passenger? I've grepped the source files and haven't found anything yet, but I'd like to get rid of it for security since it's ...

Current ver of Passenger with Rails 1.2.6 app?

Hi, Due to a number of issues, my app is currently stuck in Rails 1.2.6-land. Converting it to Rails 2.3 is planned, but will be awhile. Question: Does current Passenger support Rails 1.2.6? I've heard different things. I'm currently using nginx and mongrels but 'dem dogs are getting tired. Thanks! Larry ...

Passenger on Windows

Is there anyway to get PAssenger running on a Windows machine? It doesnt appear so, but it seems like many Stackoverflow'ers have use passenger a lot and I was wondering if its possible. ...

Recommendations for a snappy Ubuntu + Rails server

Hello, I run an Ubuntu 8.04 shared host (VMWare) with Apache + Passenger (= Mod Rails), MySQL and Acts_As_Ferret (in server mode). It's too slow at the first requests. I do a lot of REST operations on it and have very few users. Now I want to do a fresh installation... Which setup (based on Ubuntu) do you recommend for a really snappy...

Why are Rails and Passenger eating up my memory?

I'm on a 256 slice of Slicehost and running Apache and Passenger to host my Rails app. I've had to do the Hard-Reboot often. When I looked at this Passenger memory stat. --------- Passenger processes --------- ** [out :: welcometonewnepal.com] PID Threads VMSize Private Name ** [out :: welcometonewnepal.com] ------------------...

Phusion Passenger 2.2.2 crashes often

I deployed an rails(2.3.2) app on Passenger 2.2.2. It crashes sometimes. There's the error message. Passenger encountered the following error: The application spawner server exited unexpectedly: Broken pipe Exception class: PhusionPassenger::Railz::ApplicationSpawner::Error Backtrace: # File Line Location 0 /dh/passenger/lib/phu...

Passenger not passing params hash to Rails application on Mac OS X

I have an existing rails application that works well on Passenger for Linux. It works well on a local mongrel instance. The DB is postgresql in all cases. However, when I installed Phusion Passenger 2.2.4 on a spare Mac with OS X Leopard (running 10.5.7), the params hash does not get passed to the underlying rails application. Are there ...

Why isn't Passenger respecting my custom log format?

I need to change the log format of my rails app. I put this file in lib directory and required it in development.rb env file. require 'hodel_3000_compliant_logger' config.logger = Hodel3000CompliantLogger.new(config.log_path) and I should get the output of the development.log file as follows: Jun 28 03:05:13 millisami-notebook rai...

Exception Errno::EPIPE in Passenger RequestHandler (Broken pipe)

Hi, Upgraded to Rails 2.3.2 and Passenger 2.2.4 on Ubuntu hardy slice at slicehost with Apache2 I'm getting this same above discussed error in my Apache error.log of system /var/logs/apache2/ [ pid=4249 file=ext/apache2/Hooks.cpp:638 time=2009-07-04 11:47:32.752 ]: No data received from the backend application (process 4383) within ...

Which apache worker to use with passenger and how?

I've this config in my apache2.conf <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections #...

nginx + passenger FAILSAFE dispatch error

I'm having a very strange issue with a freshly deployed Rails app on a staging server. Up until this point all development has been done locally. I just setup the staging server and pushed the code to the staging server today, and have been getting strange errors that I can't seem to track down. My server is a debian Lenny box and I'm...

What is the current standard way to deploy a Rails app?

Up until now I've been deploying Rails apps to our Apache/Passenger setup using a simple Rake task that I wrote. I haven't tried to mess around with Capistrano or Vlad the Deployer. However, now more developers are coming on board, and I'm interesting in arranging things so that the deployment process runs the tests first and won't depl...

Should I use passenger on Apache or Nginx?

What are the pros and cons between deploying passenger on top of Apache and Nginx? ...

nginx rewrite rules with Passenger

Hi, I'm trying to migrate to nginx from Apache using Passenger in both instances to host a Rails app. The app takes a request, which is for an image- if the image exists at /system/logos/$requestedimage then it should get served, or it should be allowed to hit the Rails app to generate it if needed (where it is then cached to /system/lo...

Deploy a Rails app on Dreamhost

I am trying to deploy my first Rails app. I copied all files to ~/mysite.com and set up MySql. Here's my configuration at Dreamhost. Now when I visit mysite.com I get a 404 error (which isn't my custom 404 error). It seems that Passenger does not run! What should I do? Do I need to start Passenger? (touch tmp/restart.txt does nothing)...

Ruby on Rails application could not be started

I put my first Rails app online on Dreamhost, but I keep getting "Ruby on Rails application could not be started" (you can see it directly). Then running rake exiftool process seems to be killed by DH: sh: line 1: 10645 Killed convert "/tmp/stream20090806-10125-x36lrj-0[0]" -resize "x150" -crop "150x150+25+0" +repage "/tmp/stream2009080...

Bash Command which Rails does Not Find

Passenger says: Ruby on Rails application could not be started ... Command 'exiftool' not found (MiniExiftool::Error) When I login with ssh and I type exiftool in any directory the command works properly. I have the follwing line in both .bash_profile and .bashrc export PATH=$PATH:$HOME/bin Is it possible that Rails (MiniExiftool pl...

Git / Rails / Shared Hosting (Dreamhost) workflow

This is primarily a question about effective Git usage. I should first say I'm not an expert in Rails (at least in a production sense) and definitely a Git newbie, however, I have had some experience using SVN. My problem is that I am trying to create a rails application but do not know the best way to keep development local on my comp...