Skip to content

Instantly share code, notes, and snippets.

@vladvinnikov
Created December 25, 2011 01:49
Show Gist options
  • Save vladvinnikov/1518611 to your computer and use it in GitHub Desktop.
Save vladvinnikov/1518611 to your computer and use it in GitHub Desktop.
Passenger + Nginx + RVM
http://thekindofme.wordpress.com/2010/10/24/rails-3-on-ubuntu-10-10-with-rvm-passenger-and-nginx/
rvmsudo passenger-install-nginx-module
server {
listen 80; #the server will be running on this port
server_name www.yourhost.com;
root /home/deployer/your_rails_project/public; # <--- be sure to point to 'public'!
passenger_enabled on;
}
git clone git://github.com/jnstq/rails-nginx-passenger-ubuntu.git
sudo mv rails-nginx-passenger-ubuntu/nginx/nginx /etc/init.d/nginx
sudo chown root:root /etc/init.d/nginx
sudo /etc/init.d/nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment