~cando-developers/cando/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
CanDo Competency Tracker
========================

Installing From source
======================

* Open up a command prompt and navigate to the folder where you want your instance of CanDo to live. For example /home/yourUserName

* Next type the following command at the prompt. This will create a folder, "cando" in the current directory with everything you need. You can change the name of the folder to your liking.
 $ bzr branch lp:cando

* Next change to the new folder:
 $ cd cando

* Next, to ensure that you have all the packages required to compile Zope 3, SchoolTool, and CanDo you need to run make ubuntu-environment.
 $ sudo make ubuntu-environment

* Now you have to run make. Make grabs the latest releases of all of CanDo and SchoolTools dependencies:
 $ make

* That is all there is to it. To start it up run cando from that folder with:
 $ make run

Updating CanDo
==============

 $ make update

Kill and restart cando.


Configuring Apache Proxy for new CanDo skin
===========================================

This assumes knowledge of setting up apache and NamedVirtualHosts.

As root: a2enmod proxy_http
This will enable proxy for apache.

You will need 2 virtual hosts, 1 for our NewCanDo skin and one for the default SchoolTool skin.  

The ProxyPass for the SchoolTool skin is:
ProxyPass / http://127.0.0.1:7207/++vh++http:<url to schooltool virtualhost>:<port>/++/
ProxyPassReverse / http://127.0.0.1:7207/++vh++http:<url to schooltool virtualhost>:<port>/++/

For the New CanDo skin:
ProxyPass / http://127.0.0.1:7207/++skin++NewCanDo/++vh++http:<url to new cando virtualhost>:<port>/++/
ProxyPassReverse / http://127.0.0.1:7207/++skin++NewCanDo/++vh++http:<url to new cando virtualhost>:<port>/++/

--- example ---
<VirtualHost *>
        ServerAdmin webmaster@localhost
        ServerName cando.localhost
        ProxyPass / http://127.0.0.1:7207/++skin++NewCanDo/++vh++http:cando.localhost:80/++/
        ProxyPassReverse / http://127.0.0.1:7207/++skin++NewCanDo/++vh++http:cando.localhost:80/++/
        <Proxy>
                order allow,deny
                allow from all
        </Proxy>
</VirtualHost>

<VirtualHost *>
        ServerAdmin webmaster@localhost
        ServerName admin.cando.localhost
        ProxyPass / http://127.0.0.1:7207/++vh++http:admin.cando.localhost:80/++/
        ProxyPassReverse / http://127.0.0.1:7207/++vh++http:admin.cando.localhost:80/++/
        <Proxy>
                order allow,deny
                allow from all
        </Proxy>
</VirtualHost>