Ready first version of reusable apps dispatching.

This commit is contained in:
Wlodek Bzyl 2009-06-02 00:07:43 +02:00
parent 60bff4c291
commit 4152cefbf1

View File

@ -153,23 +153,27 @@ dispatches these applications to `/summer` and `/rsummer` sub URI.
run Sinatra::Winter.new run Sinatra::Winter.new
end end
This rackup file could be used to deploy to virtual host's root. This rackup file could be used to deploy to virtual host's root:
<VirtualHost *:80> <VirtualHost *:80>
ServerName hitch.local ServerName hitch.local
DocumentRoot /srv/www/hitch.local DocumentRoot /srv/www/hitch.local
</VirtualHost> </VirtualHost>
Creating required by Passenger directories: To this end, create directories required by Passenger:
mkdir /srv/www/hitch.local/{public,tmp} mkdir /srv/www/hitch.local/{public,tmp}
and moving `config.ru` into `/srv/www/hitch.local`. and move `config.ru` into `/srv/www/hitch.local`.
With everything in place, after restarting Apache2 the applications With everything in place, after restarting Apache2,
are accessible from the the applications are accessible from the
http://hitch.local/summer http://hitch.local/winter http://hitch.local/summer
and
http://hitch.local/winter
respectively. respectively.