Mercurial > p > roundup > code
comparison doc/installation.txt @ 3797:bb6e8fafa341
Updated Windows installation docs (thanks Bo Berglund)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 28 Dec 2006 22:18:28 +0000 |
| parents | f5ddd1639a15 |
| children | ac4da2670516 |
comparison
equal
deleted
inserted
replaced
| 3796:aef19fff38dd | 3797:bb6e8fafa341 |
|---|---|
| 1 ================== | 1 ================== |
| 2 Installing Roundup | 2 Installing Roundup |
| 3 ================== | 3 ================== |
| 4 | 4 |
| 5 :Version: $Revision: 1.121 $ | 5 :Version: $Revision: 1.122 $ |
| 6 | 6 |
| 7 .. contents:: | 7 .. contents:: |
| 8 :depth: 2 | 8 :depth: 2 |
| 9 | 9 |
| 10 | 10 |
| 465 timing display is disabled. | 465 timing display is disabled. |
| 466 | 466 |
| 467 In the following example we have two trackers set up in | 467 In the following example we have two trackers set up in |
| 468 ``/var/db/roundup/support`` and ``/var/db/roundup/devel`` and accessed | 468 ``/var/db/roundup/support`` and ``/var/db/roundup/devel`` and accessed |
| 469 as ``https://my.host/roundup/support/`` and ``https://my.host/roundup/devel/`` | 469 as ``https://my.host/roundup/support/`` and ``https://my.host/roundup/devel/`` |
| 470 respectively. Having them share same parent directory allows us to | 470 respectively (provided Apache has been set up for SSL of course). |
| 471 Having them share same parent directory allows us to | |
| 471 reduce the number of configuration directives. Support tracker has | 472 reduce the number of configuration directives. Support tracker has |
| 472 russian user interface. The other tracker (devel) has english user | 473 russian user interface. The other tracker (devel) has english user |
| 473 interface (default). | 474 interface (default). |
| 474 | 475 |
| 475 Static files from ``html`` directory are served by apache itself - this | 476 Static files from ``html`` directory are served by apache itself - this |
| 508 PythonOption TrackerLanguage ru | 509 PythonOption TrackerLanguage ru |
| 509 </Directory> | 510 </Directory> |
| 510 <Directory /var/db/roundup/devel> | 511 <Directory /var/db/roundup/devel> |
| 511 PythonOption TrackerHome /var/db/roundup/devel | 512 PythonOption TrackerHome /var/db/roundup/devel |
| 512 </Directory> | 513 </Directory> |
| 514 | |
| 515 Notice that the ``/var/db/roundup`` path shown above refer to the directory | |
| 516 in which the tracker homes are stored. The actual value will thus depend on | |
| 517 your system. | |
| 518 | |
| 519 On Windows the corresponding lines will look similar to these:: | |
| 520 | |
| 521 AliasMatch /roundup/(.+)/@@file/(.*) C:/DATA/roundup/$1/html/$2 | |
| 522 AliasMatch /roundup/([^/]+)/(?!@@file/)(.*) C:/DATA/roundup/$1/dummy.py/$2 | |
| 523 <Directory C:/DATA/roundup/*> | |
| 524 <Directory C:/DATA/roundup/support> | |
| 525 <Directory C:/DATA/roundup/devel> | |
| 526 | |
| 527 In this example the directory hosting all of the tracker homes is | |
| 528 ``C:\DATA\roundup`` (Notice that you must use forward slashes in paths | |
| 529 inside the httpd.conf file!) | |
| 530 | |
| 531 The URL for accessing these trackers then become: | |
| 532 `http://<roundupserver>/roundup/support/`` and | |
| 533 ``http://<roundupserver>/roundup/devel/`` | |
| 534 | |
| 535 Note that in order to use https connections you must set up Apache for secure | |
| 536 serving with SSL. | |
| 513 | 537 |
| 514 WSGI Handler | 538 WSGI Handler |
| 515 ~~~~~~~~~~~~ | 539 ~~~~~~~~~~~~ |
| 516 | 540 |
| 517 The WSGI handler is quite simple. The following sample code shows how | 541 The WSGI handler is quite simple. The following sample code shows how |
| 834 | 858 |
| 835 | 859 |
| 836 Windows Server | 860 Windows Server |
| 837 -------------- | 861 -------------- |
| 838 | 862 |
| 839 To have the Roundup web server start up when your machine boots up, set the | 863 To have the Roundup web server start up when your machine boots up, there |
| 840 following up in Scheduled Tasks (note, the following is for a cygwin setup): | 864 are two different methods, the scheduler and installing the service. |
| 841 | 865 |
| 842 Run | 866 |
| 843 ``c:\cygwin\bin\bash.exe -c "roundup-server TheProject=/opt/roundup/trackers/support"`` | 867 1. Using the Windows scheduler |
| 844 Start In | 868 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 845 ``C:\cygwin\opt\roundup\bin`` | 869 |
| 846 Schedule | 870 Set up the following in Scheduled Tasks (note, the following is for a |
| 847 At System Startup | 871 cygwin setup): |
| 872 | |
| 873 **Run** | |
| 874 | |
| 875 ``c:\cygwin\bin\bash.exe -c "roundup-server TheProject=/opt/roundup/trackers/support"`` | |
| 876 | |
| 877 **Start In** | |
| 878 | |
| 879 ``C:\cygwin\opt\roundup\bin`` | |
| 880 | |
| 881 **Schedule** | |
| 882 | |
| 883 At System Startup | |
| 848 | 884 |
| 849 To have the Roundup mail gateway run periodically to poll a POP email address, | 885 To have the Roundup mail gateway run periodically to poll a POP email address, |
| 850 set the following up in Scheduled Tasks: | 886 set up the following in Scheduled Tasks: |
| 851 | 887 |
| 852 Run | 888 **Run** |
| 853 ``c:\cygwin\bin\bash.exe -c "roundup-mailgw /opt/roundup/trackers/support pop roundup:roundup@mail-server"`` | 889 |
| 854 Start In | 890 ``c:\cygwin\bin\bash.exe -c "roundup-mailgw /opt/roundup/trackers/support pop roundup:roundup@mail-server"`` |
| 855 ``C:\cygwin\opt\roundup\bin`` | 891 |
| 856 Schedule | 892 **Start In** |
| 857 Every 10 minutes from 5:00AM for 24 hours every day | 893 |
| 858 Stop the task if it runs for 8 minutes | 894 ``C:\cygwin\opt\roundup\bin`` |
| 895 | |
| 896 **Schedule** | |
| 897 | |
| 898 Every 10 minutes from 5:00AM for 24 hours every day | |
| 899 | |
| 900 Stop the task if it runs for 8 minutes | |
| 901 | |
| 902 | |
| 903 2. Installing the roundup server as a Windows service | |
| 904 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 905 | |
| 906 This is more Windows oriented and will make the Roundup server run as | |
| 907 soon as the PC starts up without any need for a login or such. It will | |
| 908 also be available in the normal Windows Administrative Tools. | |
| 909 | |
| 910 For this you need first to create a service ini file containing the | |
| 911 relevant settings. | |
| 912 | |
| 913 1. It is created if you execute the following command from within the | |
| 914 scripts directory (notice the use of backslashes):: | |
| 915 | |
| 916 roundup-server -S -C <trackersdir>\server.ini -n <servername> -p 8080 -l <trackersdir>\trackerlog.log software=<trackersdir>\Software | |
| 917 | |
| 918 where the item ``<trackersdir>`` is replaced with the physical directory | |
| 919 that hosts all of your trackers. The ``<servername>`` item is the name | |
| 920 of your roundup server PC, such as w2003srv or similar. | |
| 921 | |
| 922 2. Next open the now created file ``C:\DATA\roundup\server.ini`` file | |
| 923 (if your ``<trackersdir>`` is ``C:\DATA\roundup``). | |
| 924 Check the entries for correctness, especially this one:: | |
| 925 | |
| 926 [trackers] | |
| 927 software = C:\DATA\Roundup\Software | |
| 928 | |
| 929 (this is an example where the tracker is named software and its home is | |
| 930 ``C:\DATA\Roundup\Software``) | |
| 931 | |
| 932 3. Next give the commands that actually installs and starts the service:: | |
| 933 | |
| 934 roundup-server -C C:\DATA\Roundup\server.ini -c install | |
| 935 roundup-server -c start | |
| 936 | |
| 937 4. Finally open the AdministrativeTools/Services applet and locate the | |
| 938 Roundup service entry. Open its properties and change it to start | |
| 939 automatically instead of manually. | |
| 940 | |
| 941 If you are using Apache as the webserver you might want to use it with | |
| 942 mod_python instead to serve out Roundup. In that case see the mod_python | |
| 943 instructions above for details. | |
| 859 | 944 |
| 860 | 945 |
| 861 Sendmail smrsh | 946 Sendmail smrsh |
| 862 -------------- | 947 -------------- |
| 863 | 948 |
