RVM, Passenger, NGINX on top of existing Passenger/NGINX

I previously had Passenger 2.2.13 install with NGINX 0.7.65 - I want to install rails 3 so I figured I'd go the RVM route. I followed instructions from http://blog.ninjahideout.com/posts/a-guide-to-a-nginx-passenger-and-rvm-server and am having issues because my previous install is in a different location and I think that is the one being used. When I make the changes to my nginx.conf file I get a 502 Bad Gateway on all of my apps..

Can anyone help me out with remove NGINX, Passenger, RVM, and re-installing fresh?

I am running OS X 10.6.

Answers


If the previous version was running ruby 1.8, I would do the following to have both apps running:

  1. Install rvm
  2. Replicate current ruby (ruby version, gems, etc) server configuration for rvm. This is step should include re-installing passenger gem for the new ruby.
  3. Install ruby 1.9 using rvm and then follow this guide: http://blog.phusion.nl/2010/09/21/phusion-passenger-running-multiple-ruby-versions/

I've done this using apache, and now everything is working ok.


This has to do with using RVM and Passenger, passenger by default only has one path for ruby,once updated this worked fine. I've moved away from Passenger locally to avoid dealing with multiple environments.


Need Your Help

quartz integration with spring,null pointer exception

java spring quartz-scheduler

i am trying to integrate quartz with spring, a file location is passed to the JobCSVfile class from a jsp page but it is not taking that location and showing null pointer exception. And i also want...

Unicorn + Rack Lint Error - content header

ruby-on-rails-3 rack unicorn

I keep getting the follow server error when running unicorn on my local machine:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.