Last active
August 29, 2015 13:56
-
-
Save altherlex/8983014 to your computer and use it in GitHub Desktop.
How upgrade your Passenger 3 to 4; and one more environment in RVM; Rails3; Ruby1.9
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
# Head nginx.config | |
http { | |
passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.37; | |
passenger_ruby /usr/local/bin/ruby; | |
passenger_default_user db2inst1; | |
#Optional: | |
# Permisson for db2inst1 in new gem passenger | |
chown root.db2grp1 -Rf /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.37 | |
chmod 775 -Rf /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.37 | |
#nginx.config | |
server { | |
# Using Ruby 1.9.3 and Rails3 | |
# It's necessary to put the path with 'wrappers' | |
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.3-p484/ruby; | |
listen 3010; | |
server_name www.mysystem.com.br; | |
#Executing Nginx | |
rvm system | |
rvmsudo /usr/local/nginx/sbin/nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment