passenger

Why can't I set DEBUG=False in my django app on dreamhost without getting an error?

Hi, I have successfully been running my django based page for some time. Now I thought I'd turn of debug mode and implement a nice 404.html file. The problem is that as soon as I change DEBUG to 'False' in my settings.py I immediately get server errors that I don't understand, no matter what page I try to visit. Existing pages or non-ex...

Deploying a Rails app: Uninitialized constant Haml::Filters::Markdown

I am in the process of deploying a Rails application (that works fine in development) to a new production server running Apache and Passenger. When I navigate to the main page, I get the following in my production.log (along with a 500 Internal Server Error from Apache): ActionView::TemplateError (uninitialized constant Haml::Filters::M...

Passenger with Nginx cannot find rails 2.3.8 gem

I have been trying to setup nginx with passenger for a few days now and keep running into problems. When I go to my Rails application with my browser it says: Missing the Rails 2.3.8 gem. Please gem install -v=2.3.8 rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comme...

Multiple production ruby/rails environments

I would like to know if it's possible to set specific ruby environments to specific sites. In /etc/httpd/conf/httpd.conf LoadModule passenger_module /home/user/.rvm/gems/ruby-1.8.7-p249/gems/passenger-2.2.15/ext/apache2/mod_passenger.so PassengerRoot /home/user/.rvm/gems/ruby-1.8.7-p249/gems/passenger-2.2.15 PassengerRuby /home/user/.r...

My Rails 3 site won't start on Ubuntu/Apache2/Passenger

This server runs on Ubuntu 10.04, particularly on Linode VPS. Passenger Error: A source file that the application requires, is missing. It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded. A required library may not installed. Please install all libraries ...

Redirecting www to non www on server with wildcard subdomains

Hi, I have a Rails+Apache+Passenger setup and my app serves wildcard subdomains. I need all www URLs to redirect to their non www equivalents. www.example.net should redirect to example.net www.subdomain.example.net should redirect to subdomain.example.net My current vhost config is as below <VirtualHost *:80> ServerName exampl...

I am trying to run rails on Apache, but can't get it into development mode

Hi there, I am setting up a development environment for ruby on rails. Using rails 3.0, ubuntu, mysql and apache2 with passenger. So far so good until I go to localhost and it tells me: "Mysql2::Error Unknown database '[app-name]_production'" The error occurs because I don't have a production database. Only _development and _test. ...

How do I get nginx and phusion passenger to maintain sessions between 2 rails instances?

I'm using nginx with phusion passenger to run a rails app on an ec2 CentOS machine. I have a pretty standard set up with nginx, rails, phusion passenger and ssl (I think). My nginx.conf is below. So far it has worked out fine except that every time 2 requests hit the server at the same time, a new rails instance is created to serve the ...

Passenger rake not found! Ubuntu (10.04)

Okay, so I installed rvm and everything as root. Then I installed Ruby Enterprise Edition with rvm. Now I've been having a TON of issues with rake and rvm so far and I'm not too sure as to why. I had to manually create links in my /usr/local/bin to rake to get rake working. But when I passenger-install-nginx-module Welcome to the Ph...

Ruby on Rails: How would I handle 10 concurrent users? Do I need more CPU?

Sorry if this might seem obvious. I've monitored that a web request on my Rails app uses 30-33% of CPU every time. For example, if I load a web page, then 30% of CPU is used. Does that mean that my box can only handle 3 concurrent web requests, and will stall if there are more than 3 web requests (i.e. I'll get a 100% CPU)? If so, does ...

When run on Phusion passenger, Bundler cannot find the Rails directory

So this is my problem. I used Capistrano to deploy my Rails 3 app to an Ubuntu server, which has Phusion Passenger 3 installed. Everything should have worked normal, but I kept getting this error message. Could not locate Gemfile in /var/www/rails/releases/20100916074325. (Bundler::GemfileNotFound) The directory in the error messa...

max age with nginx/passenger/memcached/rails2.3.5

I notice that in my production enviornment (where I have memcached implemented) in see a cache-control - max-age header in firebug, anytime I am looking at an index page (posts for example). Cache-Control max-age=315360000 In my dev environment that header looks like following. Cache-Contro private, max-age=0, must-revalidate As...

Git error: "fatal: .. does not appear to be a git repository" - when deploying via Capistrano

Background: I'm aiming to deploy a rails app and am hosting a remote repository for this app on DreamHost. I am using Git for version control. I have created a local repository, committed and pushed this to the remote repository via ssh. This is roughly the process I took in creating the remote repository. I seem to have created the remo...

Rails background/async task requirement

We have a rails v2.3.8/apache/passenger application & have async requirements for some long running tasks. So I have been evaluating some solutions around rails/ruby, wanted to get feed back on some of the solutions. Also I had one question - on how do the background tasks/workers get spawned. Given our rails app will run inside a apach...

How to use mod_passenger for Turbogears 2?

What do I put in passenger_wsgi.py for a Turbogears2 site? Since it's possible for Django to use mod_passenger, I'm trying to use mod_passenger with Turbogears2. So far, I've found a passenger_wsgi.py for Turbogears1, but I don't know where to start to make a passenger_wsgi.py for a Turbogears2 site. Here's the Turbogears1 example: ht...

RoR Passenger webserver "Extra File" errors on gem check --alien

I just installed the Phusion Passenger webserver via gem install. I then did a gem check --alien and got this error message: fastthread-1.0.7 has 3 problems .require_paths: Extra file ext/fastthread/Makefile: Extra file lib/fastthread.rb: Extra file passenger-2.2.15 has 5 problems .require_paths: Extra file ex...

Passenger showing blank 200 OK responses when it should be showing 404sA

(Using Rails 2.3.9 and this happens both with passenger-2.2.15 and passenger-3.0.0.pre3.) Does any know how I could be getting blank pages with status 200 for requests that should result in 404s? I see in log/staging.log ActionController::RoutingError... but in my passenger access.log it's showing 200 OK ...

Rails 3 and Passenger/Apache

We are developing a new rails application and are considering moving to Rails 3. We have the following questions: Does Passenger support Rails v3 + Ruby v1.9.2? Does Rails v3 provide a significant performance improvement over Rails v2.3.8? Thanks. ...

How can I run something in a thread with passenger?

Hello, I'm using Phusion Passenger with my nginx to deploy rails/sinatra applications, and I'm currently having a problem. I want to run a class that checks for new submissions to reddit.com every 30 seconds. But since passenger shuts down the application after x seconds of idle time, it won't keep checking. Yes, I've tried to set pass...

Rack Error with DreamHost, Passenger, and Rails 3.0.0.rc

Background: I have viewed this question as well as this one - sadly, to no avail. Error Message (Passenger): You have already activated rack 1.1.0, but your Gemfile requires rack 1.2.1. Consider using bundle exec. my Gemfile: source 'http://rubygems.org' gem 'rails', '3.0.0.rc' gem 'nifty-generators' gem 'nokogiri' group :after_ini...