Project

General

Profile

Installing the Tapestry application » History » Version 5

Ward Vandewege, 05/03/2011 04:20 PM

1 1 Tom Clegg
h1. Installing the mypg platform
2
3 2 Tom Clegg
Install ruby .deb from http://www.rubyenterpriseedition.com/download.html
4 1 Tom Clegg
5
sudo gem install rails
6
7
sudo gem install passenger
8
9
sudo /usr/local/bin/passenger-install-apache2-module
10
11
Add stuff (as provided by passenger-install) to your conf.d/passenger.conf
12
13
<pre>
14
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
15
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7
16
PassengerRuby /usr/local/bin/ruby
17
</pre>
18
19 2 Tom Clegg
Check out git repo from git@git.clinicalfuture.com:pgp-enroll.git to somewhere -- say, /var/www/my.example.freelogy.org
20 1 Tom Clegg
21
In git repo: sudo bundle install
22
23 2 Tom Clegg
If that fails, you might need to fix some dependencies like these ones, then repeat bundle install:
24 1 Tom Clegg
25 2 Tom Clegg
 sudo apt-get install libxml2-dev libxslt-dev
26 1 Tom Clegg
27 3 Tom Clegg
Point a virtualhost to the @public@ dir in your git repo
28 2 Tom Clegg
29 1 Tom Clegg
<pre>
30
<VirtualHost *:80>
31
   ServerName my.example.freelogy.org
32 2 Tom Clegg
   DocumentRoot /var/www/my.example.freelogy.org/public
33
   <Directory /var/www/my.example.freelogy.org/public>
34 1 Tom Clegg
         AllowOverride all
35
         Options -MultiViews
36
   </Directory>
37
</VirtualHost>
38
</pre>
39 4 Tom Clegg
40
Copy @config/database.example@ to @config/database.yml@ and edit to suit.
41
42
 sudo gem install sqlite3
43
44 5 Ward Vandewege
 sudo rake db:setup
45
46 4 Tom Clegg
 rake db:migrate