Difference between revisions of "Create Local MXR"
(→Project Details) |
(added note about httpd.js) |
||
Line 35: | Line 35: | ||
* Might make sense to have the web app control the web server [http://developer.mozilla.org/en/docs/Code_snippets:Running_applications via nsIProcess], so it can start/stop it intelligently. | * Might make sense to have the web app control the web server [http://developer.mozilla.org/en/docs/Code_snippets:Running_applications via nsIProcess], so it can start/stop it intelligently. | ||
+ | |||
+ | * Another option to consider is a self-hosting web server using [http://mxr.mozilla.org/seamonkey/source/netwerk/test/httpserver/ httpd.js]. Waldo has a [https://bugzilla.mozilla.org/show_bug.cgi?id=js-cgi patch] to add cgi capabilities. |
Revision as of 10:31, 28 January 2008
Contents
Project Name
Create Local MXR
Project Description
Many developers without highspeed network access would like to be able to use MXR but can't. This project will build a lightweight, installable Windows package that gives the full functionality of MXR locally. This will also include a Prism front-end specific for the task of using this local MXR.
Resources: MXR source, patches to lxr in the tree
Project Leader(s)
Project Contributor(s)
- None
Project Details
- Project begun in conjunction with Mozilla Developer Resource Kit project.
- I'm not sure the best way to do this, in terms of having a usermode, lightweight web server that can run this on Windows. We could use something like lighttpd or one of the other small servers for win32. Ideally, this could run as an app vs. a service--people won't want to install a service just to search source code.
- Win32 port of lighttpd is here. 1.3M download, 5.34M installed. Takes ~3.3M RAM on startup.
- Need DB_File. I tried to get this working with msys-perl |perl -MCPAN -e 'install DB_File'| but it doesn't seem to work for me. So I installed ActivePerl, and get it that way |ppm install DB_File|.
- Index db file size for an index of a fresh trunk checkout = ~77.8MB
- Wondering about adding syntax highlighting. Various JS libs exist for this:
- Might make sense to have the web app control the web server via nsIProcess, so it can start/stop it intelligently.