Setting up nginx with passenger for a Ruby on Rails app on Mac OSX
Nginx with passenger is a very popular choice for production and staging environment for rails applications. It is always a good practice to replicate the production and staging environments on our local systems so that we do not have last minute surprises while deploying. Most of the Ruby on Rails developers use Mac OS as their development environment so this document is regarding setting up Nginx with on it for an already existing rails app. The assumption for this doc is that you do not even have ruby installed on your system. So feel free to skip the steps that are not relevant.
Installing Ruby, setting up Rails app, installing gems and nginx
The recommended way to work on a rails app is to use
rvm for installing
ruby. We need to have multiple versions of ruby and our gems