Rvmnginxpassengerrails Configuration Server

Source: Internet
Author: User
Rvmnginxpassengerrails configuration server install passenger1geminstallpassenger installation ngnix1passenger-install-nginx-module has installed nginx and passenger, default configuration and command 1 # configure 2/opt/nginx/conf/nginx. conf... rvm nginx pasnix rails configuration server install passenger1gem install pasnix install ngnix 1passenger-install-nginx-module has installed nginx and pasnix, default configuration and command 1 # configure 2/opt/nginx/conf/nginx. conf3 command 4/opt/nginx/sbin/nginx modify default file 1 http {2 passenger_root/Library/Ruby/Gems/1. 8/gems/passenger-4.0.5; 3 passenger_ruby/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/bin/ruby; 4 rack_env Gabriel ellocal; prepare the rails project, view the Phusion configuration server, and configure the Template 1 server {2 listen 80; 3 passenger_ruby/Users/soft /. rvm/wrappers/ruby-1.9.3-p429 @ rails3/ruby; 4 server_name localhost; 5 root/Users/soft/Sites/rails-unity/public; # <--- be sure to point to 'public '! 6 passenger_enabled on; 7} you need to configure the following passenger_ruby to use the correct ruby Version. The public directory of the root rails program on the port listened by listen, the domain name owned by server_name is correct, first get 1 # switch to the correct rails version 2rvm use 1.9.3 @ rails33 # install passenger, otherwise the following command 4gem install passenger5passenger-config -- ruby-command6 # Find passenger_ruby in the output result, restart nginx.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.