Giter Site home page Giter Site logo

node-gitweb's Introduction

node-gitweb

Directly invoke and serve GitWeb through NodeJS.

This module uses node-cgi to invoke the gitweb.cgi perl file.

Example

var http = require('http');
var gitweb = require('gitweb');

http.createServer( gitweb('/') ).listen(80);

That's a very simple example.

The first argument is the mountPoint. This is the HTTP url in which GitWeb will be served from. It MUST start and end with a / slash character.

It's recommended to also pass a second argument, a config Object, that can take the following parameters:

  • projectroot - The root directory where git repos will be listed from. Default: process.env.HOME.
  • homelink - The text of the link to the GitWeb root in the top-left corner of each page. Default: the value of projectroot.
  • sitename - This value will be prefixed onto the <title> on each page. Default: GitWeb powered by Node.
  • version - The version value of the internally used gitweb.cgi file. This can really just be any arbitrary String. Default: 1.7.1.
  • max_depth - The number of directories deep from projectroot that GitWeb should look for git repos. Default: 100.
  • snapshot_default - The "snapshot" links are off by default. If you would like to re-enable them, set this value to something like tgz or zip.

node-gitweb's People

Contributors

tootallnate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

node-gitweb's Issues

page rendering failed to end

hi Nathan,

I tried this module, it works pretty well but the browser seems always being loading the page.

So I used curl to debug the homepage and some other pages. It turnd out , sometimes(not always) the response failes to end. The whole page were received. But stucked after the </body>.

Is it a issue with node-cgi? But I don't know how to debug it.

Here is my environment:

nodejs 0.8.18
OSX 10.7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.