Changes between Version 3 and Version 4 of TracStandalone
- Timestamp:
- 20/07/2009 15:23:51 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracStandalone
v3 v4 40 40 To exit the server on Windows, be sure to use {{{CTRL-BREAK}}} -- using {{{CTRL-C}}} will leave a Python process running in the background. 41 41 42 When running as a Windows service using a utility such as [http://www.google.com/search?q=srvany.exe SRVANY], stopping or restarting the service will also leave a Python process running -- restart the system instead. 43 42 == Installing as a Windows Service == 43 44 To install as a Windows service, get the [http://www.google.com/search?q=srvany.exe SRVANY] utility and run: 45 {{{ 46 C:\path\to\instsrv.exe tracd C:\path\to\srvany.exe 47 reg add HKLM\SYSTEM\CurrentControlSet\Services\tracd\Parameters /v Application /d "\"C:\path\to\python.exe\" \"C:\path\to\python\scripts\tracd-script.py\" <your tracd parameters>" 48 net start tracd 49 }}} 50 51 '''DO NOT''' use {{{tracd.exe}}}. Instead register {{{python.exe}}} directly with {{{tracd-script.py}}} as a parameter. If you use {{{tracd.exe}}}, it will spawn the python process without SRVANY's knowledge. This python process will survive a {{{net stop tracd}}}. 52 53 If you want tracd to start automatically when you boot Windows, do: 54 {{{ 55 sc config tracd start= auto 56 }}} 57 58 The spacing here is important. 44 59 45 60 == Using Authentication == … … 155 170 It is possible to use md5sum utility to generate digest-password file using such method: 156 171 {{{ 157 echo -e "${user}:trac:${password}\c" | md5sum - >>to-file 158 }}} 159 and manually delete " -" from the end and add "${user}:trac:" to the start of line from 'to-file'. You can see attachment:trac-digest-corrected.sh for detail.172 $ printf "${user}:trac:${password}" | md5sum - >>user.htdigest 173 }}} 174 and manually delete " -" from the end and add "${user}:trac:" to the start of line from 'to-file'. 160 175 161 176 == Tips == … … 185 200 Tracd supports serving projects with different base urls than /<project>. The parameter name to change this is 186 201 {{{ 187 tracd --base-path=/some/path202 $ tracd --base-path=/some/path 188 203 }}} 189 204