Project

General

Profile

Installing the Tapestry application » History » Revision 2

Revision 1 (Tom Clegg, 05/03/2011 12:55 PM) → Revision 2/47 (Tom Clegg, 05/03/2011 12:59 PM)

h1. Installing the mypg platform 

 Install ruby .deb from http://www.rubyenterpriseedition.com/download.html 

 sudo gem install rails 

 sudo gem install passenger 

 sudo /usr/local/bin/passenger-install-apache2-module 

 Add stuff (as provided by passenger-install) to your conf.d/passenger.conf 

 <pre> 
 LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so 
 PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7 
 PassengerRuby /usr/local/bin/ruby 
 </pre> 

 Check out git repo from git@git.clinicalfuture.com:pgp-enroll.git to somewhere -- say, /var/www/my.example.freelogy.org 

 In git repo: sudo bundle install 

 If that fails, you might Might need to fix some dependencies like these ones, then repeat bundle install: 

  to: sudo apt-get install libxml2-dev libxslt-dev 

 Point a virtualhost to the <tt>public</tt> dir in your git repo .../public 

 <pre> 
 <VirtualHost *:80> 
    ServerName my.example.freelogy.org 
    DocumentRoot /var/www/my.example.freelogy.org/public /home/my.example.freelogy.org/public 
    <Directory /var/www/my.example.freelogy.org/public> /home/my.example.freelogy.org/public> 
          AllowOverride all 
          Options -MultiViews 
    </Directory> 
 </VirtualHost> 
 </pre>