Installing the Tapestry application » History » Version 12
Ward Vandewege, 06/16/2011 07:40 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 | 12 | Ward Vandewege | Then execute: |
23 | 1 | Tom Clegg | |
24 | 12 | Ward Vandewege | sudo bundle install |
25 | |||
26 | 2 | Tom Clegg | If that fails, you might need to fix some dependencies like these ones, then repeat bundle install: |
27 | 1 | Tom Clegg | |
28 | 2 | Tom Clegg | sudo apt-get install libxml2-dev libxslt-dev |
29 | 1 | Tom Clegg | |
30 | 3 | Tom Clegg | Point a virtualhost to the @public@ dir in your git repo |
31 | 2 | Tom Clegg | |
32 | 1 | Tom Clegg | <pre> |
33 | <VirtualHost *:80> |
||
34 | ServerName my.example.freelogy.org |
||
35 | 2 | Tom Clegg | DocumentRoot /var/www/my.example.freelogy.org/public |
36 | <Directory /var/www/my.example.freelogy.org/public> |
||
37 | 1 | Tom Clegg | AllowOverride all |
38 | Options -MultiViews |
||
39 | </Directory> |
||
40 | </VirtualHost> |
||
41 | </pre> |
||
42 | 4 | Tom Clegg | |
43 | 12 | Ward Vandewege | Copy @config/database.example@ to @config/database.yml@ and edit to suit. Make sure to select mysql as the database server. |
44 | 7 | Tom Clegg | |
45 | 8 | Tom Clegg | |
46 | 1 | Tom Clegg | sudo rake db:setup |
47 | rake db:schema:load |
||
48 | |||
49 | After you do a git pull, you'll probably want to do |
||
50 | 8 | Tom Clegg | |
51 | 10 | Ward Vandewege | rake db:migrate |
52 | |||
53 | to bring your database up to the latest release. |
||
54 | 12 | Ward Vandewege | |
55 | If the Gemfile has changed, you will also have to run |
||
56 | |||
57 | sudo bundle install |