updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / passenger / passenger.install
blob16df4078c217bfb177460bd15c6679b6ab453243
1 post_install() {
2         echo "Please edit your Apache configuration file, and add these lines:"
3         echo ""
4         echo "LoadModule passenger_module /var/aur/passenger3/src/passenger-3.0.0/ext/apache2/mod_passenger.so"
5         echo "PassengerRoot /var/aur/passenger3/src/passenger-3.0.0"
6         echo "PassengerRuby /opt/ruby1.8/bin/ruby"
7         echo ""
8         echo "After you restart Apache, you are ready to deploy any number of Ruby on Rails"
9         echo "applications on Apache, without any further Ruby on Rails-specific"
10         echo "configuration!"
11         echo ""
12         echo ""
13         echo "Deploying a Ruby on Rails application: an example"
14         echo ""
15         echo "Suppose you have a Ruby on Rails application in /somewhere. Add a virtual host"
16         echo "to your Apache configuration file, and set its DocumentRoot to"
17         echo "/somewhere/public, like this:"
18         echo ""
19         echo "<VirtualHost *:80>"
20         echo "  ServerName www.yourhost.com"
21         echo "  DocumentRoot /somewhere/public    # <-- be sure to point to 'public'!"
22    echo "   <Directory /somewhere/public>"
23    echo "      AllowOverride all              # <-- relax Apache security settings"
24    echo "      Options -MultiViews            # <-- MultiViews must be turned off"
25    echo "   </Directory>"
26         echo "</VirtualHost>"
27         echo ""
28         echo "And that's it! You may also want to check the Users Guide for security and"
29         echo "optimization tips, troubleshooting and other useful information:"
30         echo ""
31         echo "/var/aur/passenger3/src/passenger-3.0.0/doc/Users guide Apache.html"