passenger

How do I set IP access / password restrictions in Apache?

I'd like to restrict access to my Rails app (running on Apache/Passenger) to just two IPs, but if the visitor doesn't fall into those two IPs, I would like for him/her to be prompted to enter a password that would allow any user with the proper credentials to access the site from anywhere. I am new to configuring Apache and would apprec...

How should I deploy a patch to a Passenger-based production Rails application without downtime?

I have a Passenger-based production Rails application which has thousands of users. Occasionally we need to apply a code patch (we use git) and the current process for doing this (you can assume there are no data migrations) is: Perform git pull origin [production-branch-name] on the server touch tmp/restart.txt to restart Passenger ...

Help debugging Apache, Passenger and Rails problem

We have an environment running that uses Apache, Passenger and rails. The system is handling most request normally, yet certain requests do not make it to the rails application. For instance, a request to /books is successful, but /books/1 hits apache and passenger, but does not even make it to rails. We set the apache log level to de...

Many passenger config on same domain for many rails apps ?

Hello, I would like to have individuals config for my rails apps on my server, using passenger. How to do it ? For example, I want to have different PassengerPoolIdleTime ... ...

How to avoid nginx+passenger logging each request two times

I have nginx(0.7.64) with passenger(2.2.9) over ruby(1.8.7) Enterprise Edition. When I operate from script/console, log behaves normal, but whenever nginx receives a request, it is logged twice. I have two different rails apps in separate vhosts (like the one bellow) and it happens in both (one is in development and one in production)....

Invalid AuthenticityToken everywhere

I have a rails app that I just deployed which is generating Invalid AuthenticityToken errors anywhere a form is submitted. The app uses subdomains as account names and will also eventually allow for a custom domain to be entered. I have an entry in production.rb to allow for cross-domain session handling. The problem is that you can...

Passenger processes restart even though PassengerPoolIdleTime is 0

I have set PassengerPoolIdleTime to 0, with the expectation that this means I can "warm" up a bunch of passenger processes on my server, and the next time I have a burst of traffic (even if it is days later), they will all be warmed up and ready to accept requests. What I'm seeing instead is that every morning when I get up, passenger-s...

Fastest way to deploy rails apps with Passenger

I am working on a Dreamhost server with Rails 2.3.5. Every time I make changes to a site, I have to ssh into the site, remove all the files, upload a zip file containing all the new files for the site, unzip that file, migrate the database, and go. Something tells me there's a faster way to deploy rails apps. I am using mac Time Machin...

Django on Dreamhost - testing/sand box environment

I've been using webfaction for all my django needs for the last couple of years but have had a high traffic site fall in my lap that dreamhost are probably better suited to handling. To set up and experiment with a site with webfaction there are your [user].webfactional.com accounts. Which is sweet. Equivalently Dreamhost also offers [...

Weird Facebooker Plugin & Pushion Passenger ModRails Production Error

I have an application (Rails 2.3.5) that I'm deploying to production Linux/Apache server using the latest Phushion Passenger/Apache Module 2.2.11 version. After deploying my original application, it returns a 500 error with no logging to production log. So I created a minimal test rails application, with some active record calls to the ...

How to rewrite image/<text>-<imageID>-<text> to image/ID.jpg ???

Hi everyboy, I used to have PHP websites and using url rewriting on picture to have SEO friendly urls, On php I had links like /image/blablablabla-1234-blablabla rewriting to: /image/1234.jpg by using a url rewrite rule on apache .htaccess file. So I would like the structure /image/<text>-ID-<text> to return /image/<id>.jpg reguardl...

Passenger apache default page error

I asked this a couple of days ago on Server Fault but am getting no responses and little interest. Since it is related to setting up a dev environment I thought the SO community might be able to help me out... I just installed Passenger and the Passenger Pref Pane on OSX. However, when I try to browse to one of my Rails applications I...

Passenger problem: "no such file to load" -- /config/environment

I've been researching this one and found references to similar problems here and there, but none of them has led to a solution yet. I've installed passenger (2.2.11) and nginx (0.7.64) and when I start things up and hit a Rails URL, I get an error page informing me of a load error: no such file to load -- /path/to/app/config/environment...

Rails controllers not working

Hi Guys, I've just started on rails, got it all setup on my DreamHost account with Passenger, except the demo controller I've created isn't working. I ran: $ script/generate controller demo index The files are all there, but when I go to http://rails.mysite.com/demo/index I get the 'We're sorry, but something went wrong' message. The...

Passenger: RailsBaseURI case sensitive?

I used Passenger to deploy a RoR app to a sub URI on my domain. The problem I'm facing is that the sub URI seems to be case sensitive. Navigating to http://mydomain.com/RailsApp resolves fine. However, if I go to http://mydomain.com/railsapp, http://mydomain.com/railsApp, or any other variation, I get a 404 error. How can these requests ...

nginx + passenger not using rackup file

I have an issue where Passenger is not detecting the config.ru file for the following nginx server server { listen 80; passenger_enabled on; server_name callumj.com cjlondon.com; access_log logs/callumj.access.log; root /webapps/callumj_com/public; } Nginx just seems to ignor...

Notify by email when passenger error occurs

Hello, is it possible to send notification emails when passenger error occurs? Something similar to the email sending by exception notifier when there is an error in Rails app. I wonder because now we have no way to find out if someone hits an unexpected app spawner or other error (like memory limit etc.). Thank you! ...

Database problems when setting up Phusion Passenger for the first time

I'm a new ruby/rails user trying to get my mac set up for the first time with an existing rails project. The app runs fine when using mongrel, but it doesn't start properly when using Phusion Passenger. The problem seems to be when loading the first model of the project. I'm speculating that there's a problem accessing my database, bu...

How can I tell Phusion Passenger which python to use?

I'm using Phusion Passenger with a ruby app and I'd also like to set it up to work with an django appengine app I'm working on. Googling for "passenger_wsgi.py" I was able to get the following very simple non-django app working on passenger: passenger_wsgi.py: def application(environ, start_response): response_headers = [('Content-...

How do I get Phusion Passenger to work with Django for App Engine?

I'm having a devil of a time getting Phusion Passenger to work with django-nonrel for Google's App Engine. I can seem to get it to work for GoogleAppEngineLauncher and for the production server but not Passenger; or for Passenger and GoogleAppEngineLauncher but not the production server; or for Passenger and the production server but no...