My simple way of setup rails production
With Paseenger & nginx.
- Install passenger and nginx from APT source
- Install ruby using rvm
- Config nginx passenger path, ruby to rvm source, and root to project public folder
I try ruby gem method to install both passenger and nginx at first(gem install passenger
then rvmsudo passenger-install-nginx-module
), but only nginx works. Maybe the mix different tutorial leads to this problem. After I removed passenger & nginx and installed again from APT, it finally worked.