os x ruby on rails WebApps

Rails on Nginx with Passenger on Mac OS X Lion

This is a quick and dirty guide to getting Ruby on Rails working on Nginx with Passenger on Mac OS X Lion:

brew install nginx
gem install passenger
cd ~/Library/Caches/Homebrew/
tar zxvf nginx-*.tar.gz 
cd nginx-*

Now you to edit this file:


Make sure there’s something like the stuff below:

  server {
        listen       8080;
        server_name  localhost;

        root /Users/me/repos/my_awesome_rails_app/public

        rails_env development;
        passenger_enabled on;

        charset utf-8;

lynx http://localhost:8080

Guides Online:

Leave a Reply

Your email address will not be published. Required fields are marked *