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-* passenger-install-nginx-module
Now you to edit this file:
/usr/local/Cellar/nginx/1.0.11/conf/nginx.conf
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;
}
nginx lynx http://localhost:8080
Guides Online:
http://mrjaba.posterous.com/rails-31-asset-pipeline-with-nginx-and-passen