Created
October 4, 2010 10:07
-
-
Save kylewelsby/609476 to your computer and use it in GitHub Desktop.
RVM and Passenger playing nicely
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
# Each site directory uses its own Gemset and specifies its Ruby version. | |
rvm use 1.9.2@personal_ictunes --create | |
passenger start -a 127.0.0.1 -p 8090 -d |
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
# Install Passenger 3 with the following commands; | |
# | |
# ------ | |
# | |
# rvm 1.8.7@global gem install passenger --pre | |
# passenger-install-apache2-module | |
# | |
# ------ | |
# | |
# Added by the Passenger preference pane | |
# Make sure to include the Passenger configuration (the LoadModule, | |
# PassengerRoot, and PassengerRuby directives) before this section. | |
LoadModule passenger_module /Users/Kyle.Welsby/.rvm/gems/ruby-1.8.7-p302@global/gems/passenger-3.0.0.pre4/ext/apache2/mod_passenger.so | |
PassengerRoot /Users/Kyle.Welsby/.rvm/gems/ruby-1.8.7-p302@global/gems/passenger-3.0.0.pre4 | |
PassengerRuby /home/Kyle.Welsby/.rvm/bin/passenger_ruby | |
<IfModule passenger_module> | |
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName _default_ | |
</VirtualHost> | |
Include /private/etc/apache2/passenger_pane_vhosts/*.conf | |
</IfModule> |
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
# Each site url added using the preferance pane creates this file. | |
<VirtualHost *:80> | |
ServerName ictunes.local | |
DocumentRoot "/Users/Kyle.Welsby/code/personal/ictunes/public" | |
RackEnv development | |
# Add the following | |
PassengerEnabled off | |
ProxyPass / http://127.0.0.1:8090/ | |
ProxyPassReverse / http://127.0.0.1:8090/ | |
<Directory "/Users/Kyle.Welsby/code/personal/ictunes/public"> | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment