Questions tagged [phusion-passenger]

Phusion Passenger (originally called mod_rails or mod_rack) is a Rails application server designed for easy deployment and low maintenance hosting of Rack apps, including Rails, Sinatra, Camping, and other ruby-based web development micro-frameworks. Passenger supports both Apache and NGinx webservers and is written in C++.

More about Phusion Passenger: http://www.modrails.com/

482 questions
3
votes
1 answer

passenger and apache memory usage

On a "CentOS release 6.2 (Final)" server (with Ruby 1.9.3 and Rails 3.2), and using more memory than expected. Looking at passenger-memory-stats I see a couple of HUGE httpd processes... any thoughts on how I can figure out what's going on and…
3
votes
1 answer

Application specific environment on the same server in Nginx/Passenger

I have two Rails applications (say app1 and app2) deployed using Nginx/Passenger. The server definition in nginx.conf looks like this: server { rails_env demo; client_max_body_size 50M; listen 80; server_name …
dexter
  • 81
  • 4
3
votes
0 answers

Phusion Passenger setting PassengerPreStart does not activate using service httpd start

I'm running Phusion Passenger on RHEL, hosting a Rails application. I can successfully start up a passenger instance on Apache startup using the Passenger setting PassengerPreStart, but only if I start up Apache using apachectl start. If I start up…
3
votes
1 answer

Rails Passenger Nginx cannot load such file -- bundler

I have set up Rails, Passenger, nginx, and PostgreSQL on Ubuntu Server 12.04LTS. Upon trying to access the application/website, however, I am greeted with an error page saying that the application could not be started because a source file is…
Stuart
  • 151
  • 1
  • 4
3
votes
1 answer

Passenger fails to run on first load, but successfully launches after single refresh

I have a pretty simply passenger installation on my production server. It seems that every night the passenger process quits due to inactivity. When I hit the site in the morning, passenger starts up again and will give me a fairly straightforward…
Andy
  • 31
  • 1
3
votes
1 answer

How do I get Apache's www-data to recognize RVm?

Problem: Apache/Passenger don't recognize RVM I have a multi-user install of RVM, per the canonical instructions: http://beginrescueend.com/rvm/install/ I then edited /etc/profile.d/rvm.sh to include the following line so that Ruby 1.9 is the…
Manu R
  • 175
  • 1
  • 2
  • 6
3
votes
1 answer

Passenger + Rails + Global Queues - Can you direct specific requests to specific queues?

I have a site with a relatively low amount of traffic that's normally served happily by 3 or 4 passenger instances. However, sometimes it is getting hammered by a large number of automated requests that can take up to 15-20 seconds to completed.…
Dave Smylie
  • 141
  • 1
  • 7
3
votes
1 answer

Nginx with Passenger behind HAProxy causes 503 errors

Over the last month I was forced to learn a lot of things about server configuration, integration, AWS, etc. I have never done these to this extent. I got everything up and running well for my app (thanks mostly to the…
Max Chernyak
  • 650
  • 8
  • 21
3
votes
1 answer

Passenger - "Auto-kill" rogue processes?

I'm running a Ruby on Rails application with Passenger + Apache. There's also a perl mailing list server (Sympa) running with mod_perl. I have root and sh access to the server (an Ubuntu machine). Most of the times it runs just fine; the server has…
egarcia
  • 175
  • 13
3
votes
3 answers

Redmine install not working and displaying directory contents - Ubuntu 10.04

I've gone through the steps to set up and install the redmine project tracking web app on my VPS with Apache2 but I'm running into a situation where instead of displaying the redmine app, I just see the directory contents: Does anyone know what…
Casey Flynn
  • 217
  • 4
  • 13
3
votes
1 answer

Is it normal to have a Ruby process always running in Ubuntu?

I'm running Ubuntu 10.10 with Apache2, RVM (For Ruby) and Passenger (mod_rails). When I look at the "top" application, I always notice the same Ruby process consuming about 1/4 of the memory on my server. I'm just wondering if this is normal for my…
Dan
  • 33
  • 2
3
votes
2 answers

Apache Passenger with Rails 3 Environment?

I'm running a new Rails 3 app through Apache Passenger, and am trying to run it in the stage environment. I have my configuration file set up properly according to the documentation as well as previous Apache Passenger apps, but I can't get it to…
Mike Trpcic
  • 215
  • 1
  • 2
  • 6
3
votes
4 answers

Set environment variables for rails app hosted in nginx/passenger

How do I set environment variables so that they are available to my rails app hosted inside nginx/passenger?
3
votes
1 answer

How can I only serve https using passenger 2.2.9, nginx 0.7.65, and sinatra 0.94?

I'm trying to deploy a website with only https access, no http access. I'm sure that I'm just missing some simple line in a configuration file. As the title says, it's Sinatra 0.9.4 on nginx 0.7.65 through passenger 2.2.9. The main ruby file for…
mmr
  • 369
  • 2
  • 6
  • 18
2
votes
1 answer

How to properly use ENV variables in Nginx config?

I want to pass the RAILS_ENV env variable to nginx and use it to set the value for the rails_env directive. I can read the value of the variable from the environment with LUA module: location @app { set_by_lua $env_rails_env 'return…
Jakov Sosic
  • 5,267
  • 4
  • 24
  • 35