{"id":1231,"date":"2012-02-29T14:26:20","date_gmt":"2012-02-29T22:26:20","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=1231"},"modified":"2012-02-29T14:26:20","modified_gmt":"2012-02-29T22:26:20","slug":"rails-on-nginx-with-passenger-on-mac-os-x-lion","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2012\/02\/29\/rails-on-nginx-with-passenger-on-mac-os-x-lion\/","title":{"rendered":"Rails on Nginx with Passenger on Mac OS X Lion"},"content":{"rendered":"<p>This is a quick and dirty guide to getting Ruby on Rails working on Nginx with Passenger on Mac OS X Lion:<\/p>\n<pre>\r\nbrew install nginx\r\ngem install passenger\r\ncd ~\/Library\/Caches\/Homebrew\/\r\ntar zxvf nginx-*.tar.gz \r\ncd nginx-*\r\npassenger-install-nginx-module \r\n<\/pre>\n<p>Now you to edit this file:<\/p>\n<pre>\r\n\/usr\/local\/Cellar\/nginx\/1.0.11\/conf\/nginx.conf\r\n<\/pre>\n<p>Make sure there&#8217;s something like the stuff below:<\/p>\n<pre>\r\n  server {\r\n        listen       8080;\r\n        server_name  localhost;\r\n\r\n        root \/Users\/me\/repos\/my_awesome_rails_app\/public\r\n\r\n        rails_env development;\r\n        passenger_enabled on;\r\n\r\n        charset utf-8;\r\n  }\r\n\r\n<\/pre>\n<pre>\r\nnginx\r\nlynx http:\/\/localhost:8080\r\n<\/pre>\n<p>Guides Online:<\/p>\n<p><a href=\"http:\/\/mrjaba.posterous.com\/rails-31-asset-pipeline-with-nginx-and-passen\">http:\/\/mrjaba.posterous.com\/rails-31-asset-pipeline-with-nginx-and-passen<\/a><\/p>\n<p><a href=\"http:\/\/samsoff.es\/posts\/running-rails-local-development-with-nginx-postgres-and-passenger-with-homebrew\">http:\/\/samsoff.es\/posts\/running-rails-local-development-with-nginx-postgres-and-passenger-with-homebrew<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s something like the stuff below: server { listen 8080; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[135,107,33],"tags":[],"class_list":["post-1231","post","type-post","status-publish","format-standard","hentry","category-os-x","category-ruby-on-rails","category-webapps"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/1231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=1231"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/1231\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=1231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=1231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=1231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}