Created
December 25, 2011 01:49
-
-
Save vladvinnikov/1518611 to your computer and use it in GitHub Desktop.
Passenger + Nginx + RVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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