Installing the Tapestry application » History » Version 9
Ward Vandewege, 06/08/2011 02:46 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 | 6 | Ward Vandewege | RackEnv "development" |
18 | 1 | Tom Clegg | </pre> |
19 | |||
20 | 2 | Tom Clegg | Check out git repo from git@git.clinicalfuture.com:pgp-enroll.git to somewhere -- say, /var/www/my.example.freelogy.org |
21 | 1 | Tom Clegg | |
22 | In git repo: sudo bundle install |
||
23 | |||
24 | 2 | Tom Clegg | If that fails, you might need to fix some dependencies like these ones, then repeat bundle install: |
25 | 1 | Tom Clegg | |
26 | 2 | Tom Clegg | sudo apt-get install libxml2-dev libxslt-dev |
27 | 1 | Tom Clegg | |
28 | 3 | Tom Clegg | Point a virtualhost to the @public@ dir in your git repo |
29 | 2 | Tom Clegg | |
30 | 1 | Tom Clegg | <pre> |
31 | <VirtualHost *:80> |
||
32 | ServerName my.example.freelogy.org |
||
33 | 2 | Tom Clegg | DocumentRoot /var/www/my.example.freelogy.org/public |
34 | <Directory /var/www/my.example.freelogy.org/public> |
||
35 | 1 | Tom Clegg | AllowOverride all |
36 | Options -MultiViews |
||
37 | </Directory> |
||
38 | </VirtualHost> |
||
39 | </pre> |
||
40 | 4 | Tom Clegg | |
41 | Copy @config/database.example@ to @config/database.yml@ and edit to suit. |
||
42 | |||
43 | sudo gem install sqlite3 |
||
44 | |||
45 | 5 | Ward Vandewege | sudo rake db:setup |
46 | 9 | Ward Vandewege | rake db:schema:load |
47 | 7 | Tom Clegg | sudo chown www-data db/*.sqlite3 |
48 | sudo chmod g+w db/*.sqlite3 |
||
49 | 8 | Tom Clegg | sudo chgrp www-data db |
50 | sudo chmod g+w db |