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