Changes between Version 4 and Version 5 of TracStandalone
- Timestamp:
- Mar 20, 2010, 2:22:34 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracStandalone
v4 v5 1 1 = Tracd = 2 2 3 Tracd is a lightweight standalone Trac web server. In most cases it's easier to setup and runs faster than the [wiki:TracCgi CGI script]. 3 Tracd is a lightweight standalone Trac web server. 4 It can be used in a variety of situations, from a test or development server to a multiprocess setup behind another web server used as a load balancer. 4 5 5 6 == Pros == 6 7 7 8 * Fewer dependencies: You don't need to install apache or any other web-server. 8 * Fast: Should be almost as fast as the [wiki:TracModPython mod_python] version (and much faster than the [wiki:TracCgi CGI]) .9 * Fast: Should be almost as fast as the [wiki:TracModPython mod_python] version (and much faster than the [wiki:TracCgi CGI]), even more so since version 0.12 where the HTTP/1.1 version of the protocol is enabled by default 9 10 * Automatic reloading: For development, Tracd can be used in ''auto_reload'' mode, which will automatically restart the server whenever you make a change to the code (in Trac itself or in a plugin). 10 11 11 12 == Cons == 12 13 13 * Fewer features: Tracd implements a very simple web-server and is not as configurable or as scalable as Apache HTTPD.14 * Fewer features: Tracd implements a very simple web-server and is not as configurable or as scalable as Apache httpd. 14 15 * No native HTTPS support: [http://www.rickk.com/sslwrap/ sslwrap] can be used instead, 15 16 or [http://trac.edgewall.org/wiki/STunnelTracd stunnel -- a tutorial on how to use stunnel with tracd] or Apache with mod_proxy. … … 65 66 66 67 {{{ 67 sudo htpasswd -c /path/to/env/.htpasswd username68 $ sudo htpasswd -c /path/to/env/.htpasswd username 68 69 }}} 69 70 then for additional users: 70 71 {{{ 71 sudo htpasswd /path/to/env/.htpasswd username2 72 }}} 73 then for starting the tracd: 74 {{{ 75 tracd -p 8080 --basic-auth=environmentname,/fullpath/environmentname/.htpasswd,/fullpath/environmentname /fullpath/environmentname 76 }}} 77 72 $ sudo htpasswd /path/to/env/.htpasswd username2 73 }}} 74 then for starting the tracd (on windows skip the "=" after --basic-auth): 75 {{{ 76 $ tracd -p 8080 --basic-auth=environmentname,/fullpath/environmentname/.htpasswd,/fullpath/environmentname /fullpath/environmentname 77 }}} 78 78 79 79 Tracd provides support for both Basic and Digest authentication. The default is to use Digest; to use Basic authentication, replace `--auth` with `--basic-auth` in the examples below. (You must still specify a dialogic "realm", which can be an empty string by trailing the BASICAUTH with a comma.) … … 81 81 ''Support for Basic authentication was added in version 0.9.'' 82 82 83 The general format for using authentication is :83 The general format for using authentication is (on windows skip the "=" after --auth): 84 84 85 85 {{{ … … 94 94 * '''project_path''' path of the project 95 95 96 Example :96 Example (on windows skip the "=" after --auth): 97 97 98 98 {{{ … … 162 162 163 163 {{{ 164 python trac-digest.py -u username -p password >> c:\digest.txt165 tracd --port 8000 --auth=proj_name,c:\digest.txt,trac c:\path\to\proj_name164 $ python trac-digest.py -u username -p password >> c:\digest.txt 165 $ tracd --port 8000 --auth=proj_name,c:\digest.txt,trac c:\path\to\proj_name 166 166 }}} 167 167 … … 190 190 in the Wiki: `[/<project_name>/chrome/site/software-0.1.tar.gz]` 191 191 192 The development version ofTrac supports a new `htdocs:` TracLinks192 Since 0.10, Trac supports a new `htdocs:` TracLinks 193 193 syntax for the above. With this, the example link above can be written simply 194 194 `htdocs:software-0.1.tar.gz`. … … 204 204 205 205 ---- 206 See also: TracInstall, TracCgi, TracModPython, TracGuide, [trac:TracOnWindowsStandalone?version=13#RunningTracdasservice Running tracd.exe as a Windows service] 206 See also: TracInstall, TracCgi, TracModPython, TracGuide, [trac:TracOnWindowsStandalone?version=13#RunningTracdasservice Running tracd.exe as a Windows service], [trac:TracOnWindowsIisAjp], [trac:TracNginxRecipe]